R.java file not getting generated

I too had similar issue...

I went through many link from Google, but no use. At last I open Android SDK Manager to see if any thing missing from installed packages, and found "Android SDK Built-tools" is not installed.

I installed and follow below steps:
1. re-open eclipse.
2. comment error lines
3. build All
4. uncomment error lines to see if error gone.

Hope this will help someone...


Try this:

  1. Delete any import to an R.java class (like @zapl pointed out).
  2. Move your cursor to a reference to any button/layout/string/whatever-coming-from-R, delete the last character, and hit ctrl+space. Eclipse will try to codehint you, automatically importing the correct R.java.
  3. Just to keep it cool, clean and rebuild.

Try this: I have similar problem R.java not found error it is actually not getting generated

I did almost every thing which are said in the different links in the forum

What I did

1.I delete the project from the workspace and re import it,after doing that when the project launched it start giving me the SDK not found error even I was given the correct Android SDK path.I am using eclispe ADT which you can find from android site itself.

2.I don't know why ADT plugin was showing it needs to update even the latest ADT 21.1 is installed .I tried to updated that then ,i don't know how tools folder from my SDK get deleted after that .It start shouting tools folder not found in SDK folder .So I need to download the SDK again and update the ADT plugin to 21.1 .

3 So I think some time there is problem in ADT plugin ,So keep it update correctly or reinstall it will works if nothing else works .