I am using 2.1 platform. When I start a project the R.java file has not seen in the gen folder.I use the below steps,if the first step not correct the error I will go to second and so on.
-
Clean the project, uncheck the option Build Automatically and Rebuild it.
-
Import Android.R;
3.Import Package.R;
I know these steps only.But the error still remains.I have to Clean each project when I create it always.In some times this issue will happens after complete the code, on that time I have to re-edit the code and make the code as shown at the begining [ have only Oncreate method] and clean the project and rebuilt it and copy the code and run the project.After cleaning the project no problem.This issue came within 1 month.Is any way to add the R.java file to gen folder when I create a project ?
Check the logcat, that will show you the error, may be there are spaces in drawable for example image_xyx.png