The R file for Android development is missing

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.