R. java was modified manually! Reverting to generated version

Source: Internet
Author: User

After entering eclipse, the menu --> Project --> clean is equivalent to deleting the R file and then generating the R file automatically. If the R file is not automatically generated, there is an error in the program, which is generally a naming problem. I encountered the following situation: (1) control naming conflicts in different xml files in the layout folder (because I copied them directly ). Solution: the control name must be unique, that is, the control name of Chongming should be changed, and then the clean Project will automatically generate the R file. (2) The res folder can contain only corresponding folders, but cannot contain files or images. (3) All file names in the res folder must be in lowercase. The R file is automatically generated as long as the res file is not correct.

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.