Reputation: 49
When i open eclipse, the R class
in my project is disappeared. Why?
I've eclipse juno and the last version of android SDK.
The R class
doesn't regenerate because there are errors in the code...
How can i solve this problem?
Upvotes: 4
Views: 5507
Reputation: 8566
Clean your project and rebuild it
Build/Clean project
Build/Rebuild project
in android studio
thank you
Upvotes: 0
Reputation: 10063
Look for errors in the XML resources; those will prevent R from being built, along with errors in the code.
The "Errors" tab in Eclipse is your friend here.
Upvotes: 0
Reputation: 4165
Try Project -> clean
if this fails, fix the errors and build the project again,
the R class
will regenerate.
Upvotes: 3
Reputation: 21367
Have you tried to rebuild your entire project? You can do that with the menu item Project -> Clean.
Upvotes: 2