While working with an android project .I'm stuck with R.java file which is not found even I clean the project(project---->clean).But that file still not found .Even I create a new project the same problem occurs . what I need to do ? I'm expecting the valuable replies from which I could overcome this problem
-
delete gen folder and build your project works??Shiv– Shiv2013-03-04 13:03:53 +00:00Commented Mar 4, 2013 at 13:03
-
i am not sure but try it if it works ... right click on your project go to Android Tools and click on Fix Project Properties..and then delete gen folder and build it again??Shiv– Shiv2013-03-04 13:16:57 +00:00Commented Mar 4, 2013 at 13:16
-
Remove, if any import android.R;Shiv– Shiv2013-03-04 13:19:28 +00:00Commented Mar 4, 2013 at 13:19
-
I already done the steps you told, but no changeRakesh L– Rakesh L2013-03-04 13:42:12 +00:00Commented Mar 4, 2013 at 13:42
5 Answers
R.java is missing implicate that your resource folder is having some issues. please try to look at your resource files(layout,drawable etc). and after that clean the project. it will solve the problem for sure.
3 Comments
Have you checked that your builders are set up correct? To have the R.java file generated there's a need that the Android Pre-Compiler has processed all the resources.
In Eclipse go to "Project --> Properties" and select "Builders" from the list.

Only if these builders are set, the R file can be generated.
4 Comments
R.java missed only when there is some problem in resource files. Check properly your Menu files , layouts, and Drwables, (sometime same image names with .jpg and .png extensions are existeing).
Or you can create new project and paste everything in new project then check it again.
3 Comments
- click Project --> Build Automatically
- check build automatically
- clean the project