Android-Eclipse cannot find the new resource ID

Source: Internet
Author: User

I haven't logged on to Ubuntu for a few days. Later, because the customer wanted to add new features, he had to modify the source code of Android MMs. However, this time I found a very strange problem. After adding the string and drawable resources, I was unable to index it. I was depressed for a day. Later I thought of the r issue, but the r package path of import is correct, but I jumped to the r file in the out directory after Android source code compilation. Although I still don't know why, but by removing the original import and re-introducing the r file generated by that project, it's OK //

Continued:

Locate the cause, because you need to reference mms_intermediates/classes. the jar package, which is generated after compilation, also contains the r file, in addition, the path is the same as the package path. To make the project reference the r file built by the project in real time, rather than the r file that needs to be compiled from the source code through Mmm XXX, we need to sort the gen folder to the custom Library (referencedMms_intermediates/classes. jar and framework_intermediates/classes. Jar. Therefore, the correct sorting of project files is

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.