1

Possible Duplicate:
No generated R.java file in my project

Long story short: I am trying the NotePad sample code and my R.java class is not being generated. I have tried suggestions from the following posts:

But I still don't have an R.java class. Any suggestions?

Community
  • 1
  • 1
Anna Lam
  • 777
  • 2
  • 11
  • 28
  • If you're having any errors on your `res` folder means, sometimes it'll happen this. In that time. Just try to remove that errors and clean again. It'll work surely. – Praveenkumar Apr 27 '12 at 09:44
  • look this previous post http://stackoverflow.com/questions/4085959/no-generated-r-java-file-in-my-project – Aerrow Apr 27 '12 at 09:44
  • 2
    Try restarting Eclipse and importing the project again and building, Eclipse gets its knickers in a twist sometimes – EdChum Apr 27 '12 at 09:45
  • @SpK I just double checked my res folder and nothing is wrong with it. – Anna Lam Apr 27 '12 at 09:46
  • You can open the Eclipse Problems View to see if there is an Error in XML Files or missing Library etc.: Click on "Window" - "Show View" - "Problems" – Thommy Apr 27 '12 at 09:47
  • @EdChum Thanks, your suggestion worked perfectly. Please post your suggestion as an answer so I can pick it and upvote it please! :D – Anna Lam Apr 27 '12 at 09:51
  • @MissPiplup OK, very common error on Eclipse and very frustrating, also remember to save any changes to your layout.xml files if you want your new widget ids or strings to compile correctly. – EdChum Apr 27 '12 at 10:08
  • fixed errors in AndroidManifest.xml in my project, and then rebuild, R.java generated. – heMac Nov 17 '13 at 17:35

1 Answers1

1

Restart Eclipse and reimport the project again and build. Eclipse sometimes gets its knickers in a twist with the R generated class.

EdChum
  • 376,765
  • 198
  • 813
  • 562