In the process of Android development, do not know what is going on, the code in the R code has a red wavy line, so the clean, the result still has a red wavy line, and then restarted the eclipse, restart after the same appearance, and then found that the project R file is missing. I rub .... What's the situation???
Then Google a few, various methods, now posted out
1. Select the Eclipse/myeclipse clean and the R file will also appear. This method doesn't work
2. Right-click on the project to choose the Build Project,r.java file back to the method no matter
3. Copy an R file from another project and then change it in String.xml to update the R file. This method doesn't work .
None of the above three methods works, and there are still errors.
One last method:
Clean the project again to see the information in the console,
[2015-07-01 22:23:54-resumechanged] C:\users\lijingbo\workspace\resumechanged\res\layout\recruit_main.xml:10:error:error:no Resource found that Matches the given name (at ' layout_above ' with value ' @id/showcontant ').
Find the tenth line in the Recruit_main.xml layout_above, delete the line XML file, and clean, found that the R file is automatically generated. The problem is resolved.
This is mainly due to an error in the XML file.
The R file for Android development is missing