I am working on an app which was working fine .
I tried some new layout files but when I build the project the R.java file is not generated .
I tried clean and build project but still the file is not generated.
-
Why is this happening?
-
What should I do now to regenrate the files?
Android will not generate the R.java after a clean if any of the XML files have errors in them. Check for any errors and fix them. R.java will then be built.
If that doesn’t work, sometimes Eclipse looses track of the file. Click your project and hit F5 to Refresh the project.