Reputation: 134
R.Java not generating on any android project, even if it's new. "R cannot be resolved to a variable" I re-installed Eclipse, I created new projects. No matter what I do, it ALWAYS happens. They are new files. That mean there are no errors in the .xml files. Clean build does nothing.
I have installed the android-sdk. I have created an android project. The project is set to build automatically
Upvotes: 1
Views: 559
Reputation: 4629
Are you using any Libs? Sometimes when they have errors, it screws your R.java up (I had this with ABS recently).
Upvotes: 2
Reputation: 134
Okay, I found out the issue. What happened was that while there were no XML errors in MY projects, there were a few in a library I was using. That completely destroyed the R.Java's ability to autogenerate.
Upvotes: 1