Android layout file and R are not synchronized to ensure effective

Source: Internet
Author: User

1. Select project> clean
The premise is to check bulid automatically (Automatic Build and deployment)
After you click clean, the project will be re-built, because in general, the R. Java file will re-update the generation side at this time. If the project is wrong, it will not be automatically generated.
2. Select a project, right-click Android tools> fix Project Properties

The above two solutions are provided on the network, but sometimes they still do not work. What should I do?

My method isIf the gen file is deleted, myeclispse will automatically generate the r file to synchronize the file.

If not, use the dumbest method. Create a new project, copy the layout file first, and then copy the code.

PS. If not, it indicates that your layout file is faulty. Check the layout file by yourself.

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.