Android Eclipse can't generate R file

Source: Internet
Author: User

These days by eclipse whole cry, also blame oneself hand cheap appcompat_v7 to delete.

Eclipse Creation Project If it is compatible below 4.0, it will generate more than one project APPCOMPAT_V7, such as:

This project will be referenced to your target project as a compatibility package and cannot be deleted.
If it is deleted, the R file cannot be generated, and hundreds of errors will run out.

The properties->android of the right-hand side of the project becomes, like, a red fork:

Workaround:

1, if you delete appcompat_v7, did not choose this

Then go to the hard drive to completely delete the appcompat_v7;

2, in the work space to create a new project, compatible with the minimum version to maintain the same, so that the workspace will generate a appcompat_v7;

3, the original project right button properties->android, the Red Fork remove, and then add one; The results are as follows:

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Android Eclipse can't generate R file

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.