=============== 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