i was using Eclipse Helios but due to performance issues i changed to Eclipse Galileo and installed the ADT plugging, and added my sdk folder to Elcipse Preferences. Now R.j
Sometimes when you clean your project the R file disappears, I had the same issue.
The way I fixed it was:
-Make sure all the "import android.R" was removed -Clean again (if this doesn't fix it, restart eclipse and try again)
Or
-Put the pointers to R file in comment f.e. // setContentView(R.layout.main); -If all the pointers to R file are in comment, you should get only warnings in the file, and hopefully errors somewhere else. -Fix the errors and then uncomment the pointers. Sometimes eclipse ignores some errors and drops the R file and then says nothing about it, which is annoying, but this will fix it. :)
-If this still doesn't work, you can try create a new project and copy paste your code in it.