Lay_page1 cannot be parsed, or it is not a field

Source: Internet
Author: User

=============== Problem description ====================


Problem:
The public static final int lay_page1 = 0x7f080006 is clearly included in the r before the import, but it is lost for some reason.

============= Solution 1 ======================


R files do not need to be operated. Android auto add and delete. You do not know what Android is doing when filling out an ID by yourself, so you can delete it (save and delete it ).

Therefore, make sure that your layout or other resource files contain the lay_page1 ID.

============= Solution 2 ======================


Reference cycy618 on the 6th floor:
Quote: reference the reply from laiwenjiejijiali on the 5th floor:

Project-clear project ~ That's it. After you change the code, the ID does not match.
No. Clean is useless. It's anxious.

Delete the entire XML file ~ Clean up ~ Create a new ~ Running ~ There will be no spelling mistakes.

Lay_page1 cannot be parsed, or it is not a field

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.