R.java file disappears after cleaning my project

I am working on my project in eclipse but after adding some files I clean my project but after clean the R.java file automatically disappears from my project and a lot of errors in my project.

again i tried to clean and create it but my R.java files can't go back.

What will I do at this moment?

+3


source to share


1 answer


if R.java is not automatically generated then there is an error somewhere in your xml. Triple check everything.

Check your XML resources (especially these recently edited ones) for errors and sytax errors. When you have an error inside one of these files, the auto-generation of the R class will be aborted.

sure you have a bug in the XML.



change

Other possible causes are: uppercase characters in resource file names; Invalid characters in resource file names (you can only use ... z, 0 ... 9 (not as the first character), and _); File names starting with a number

thanks to Der Golem

+1


source







All Articles