No R.java file! Gen folder empty!

  • Replies:5
Kyle Swingle
  • Forum posts: 2

Jun 7, 2013, 1:36:42 AM via Website

Hello all, hopefully someone here can help me out. When I start a new android application, my gen folder is created empty, meaning I'm missing my r.java file and can't compile my project. I've tried some of the solutions I've found online such as making sure the SDK and ADT are up to date, cleaning, building, and deleting the gen folder to see if a new one is created by the auto-build. Nothing seems to work.

Thank you for your help!!

Reply
Deactivated Account
  • Forum posts: 110

Jun 12, 2013, 2:36:45 PM via Website

Did you go to Project and hit clean? that should have regenerated your R.java file.

Have you checked for any import android.R.* statements? You might have to remove those.

Reply
Kyle Swingle
  • Forum posts: 2

Jun 12, 2013, 7:44:16 PM via Website

Appreciate the response. I guess I forgot to update here, I was able to fix the problem. The 3rd time I uninstalled and reinstalled everything, it started working. Very odd considering I didn't do anything differently than I did other times. Anyway, hopefully it stays that way. Thanks for trying to help me out though

Reply
waxtah
  • Forum posts: 19

Jun 14, 2013, 10:10:41 AM via Website

i have similiar promblem, and resolve it by updating ADT and plugins to last version.

Reply
Deactivated Account
  • Forum posts: 5

Sep 18, 2013, 12:59:46 PM via Website

I had encountered a similar situation.

First, uncheck the 'Build automatically' option in Eclipse/ADT.
Second, clean the project.
Third, manually delete the 'gen' folder.
Finally, clean and build the application. It ought to work. :)

Reply