Reputation: 1545
Although I know this question has been asked a million times, I have tried going through many of the stackoverflow questions and none of the answers have worked.
I have an old version of my project that I know worked and built correctly, which I added back into my eclipse workspace. When I clean and build the project, I am given with errors with the R cannot be resolved..
What I've tried:
- Building/Cleaning project
- Was going to clear the gen folder, BUT R.java didn't even exist in there
- Checking through my XML files to ensure there's no errors
- Restarting Eclipse
Extra note: - My ADT plugin and Android SDK was the LAST version directly after Google released it's updates to merge everything over to Android Studio.
Upvotes: 2
Views: 4535
Reputation: 3561
I faced Simmilar problem, i cleaned project, Restarted Eclipse, and many other things like remove errors from problems, but it was DUE TO: an Image Name in Drawable it contained Capital Latter i did Re factor -->Rename and Problem solved..
Upvotes: 1
Reputation: 904
I just solved this problem for myself. I was using the Eclipse Android SDK on Windows 7. The problem was that the Eclipse program did not have permission to create the R file. To fix it I went to "User Account Control" settings in the Windows Control panel and lowered the slider to a lower security level. After rebooting the computer and cleaning the application in Eclipse Android SDK there were no more errors.
Upvotes: 3
Reputation: 21
I've experienced the same problem a week ago. After installing the beta version of android studio I was unable to run android projects in eclipse. Uninstalling android studio fixed all the "R cannot be resolved to.." errors.
Upvotes: 2
Reputation: 1545
After trying everything I tried one last thing.. which was to update all of my plugins and libraries for Android. This actually solved the issue. I'm sure not that many people will probably have my specific issue since it will eventually go away, but it is a different problem I have not found and a different solution I have also not found...
Upvotes: 1