On the Android project, suddenly the R class could not find a workaround for the existing resource file

Source: Internet
Author: User

Project code open in the morning, the afternoon when suddenly prompted R class can not find the existing layout file, so try a variety of methods, clean Ah, restart Ah, are invalid, and then went to the Internet search, encountered the problem of many people.

See that there is such a workaround, delete the imported ANDROID.R package, go to check their own code, sure enough there is such a row, after deletion, the problem is resolved.

But it's strange what this ANDROID.R is, and the answer is that it is a system resource class that, if imported, conflicts with the R class of the local project file, resulting in errors, missing layout files, and so on.

Hope to be helpful to everyone.

On the Android project, suddenly the R class could not find a workaround for the existing resource file

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.