Why Android does not generate R files and how to resolve them

Source: Internet
Author: User

1. The default SDK environment is caused by inconsistencies with the introduced environment.

2. The SDK has errors or the SDK is not found.

2. The target=android-8 defined in the Default.propites file is caused by an inconsistency with the eclipse settings.

3. There is an error in the project, the XML file is wrong, the resource file name is illegal: there are uppercase characters, the number begins, there are spaces, and so on.

1, when you set up the project does not appear R, first clean, to avoid the previous error.

2, rebuild the project, if not, build a few more, will be better.

3. Think about the illegal wording of the place you have just changed, or correct the XML error.

Why Android does not generate R files and how to resolve them

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.