This error is obvious, that is, the gen file cannot be found.
1. Select the project and find the clean solution under the project. This is a mainstream solution on the Internet, but there is no miracle here,
2. I will create a Gen folder in eclipse, but unfortunately I am prompted that the gen folder already exists, I went to the hard drive directory of the project (similar to SRC) and manually created a Gen folder.
Probably because of a problem with my CVS or SVN, this folder is not blocked, so the above error is solved, but sadly, the following problem occurs again,
If the is library option is checked in the library, the above error is eliminated. This is not a trivial matter. I hope you will not copy others' articles and stick to writing your own experiences .. In addition, if you try hard and cannot change the expected results, you can solve the problem inadvertently. This is life. As the saying goes: You don't have the heart to plant flowers, and you don't have the intention to insert willow trees into the shade.
[From] http://www.cnblogs.com/jiuzhexingfu/archive/2011/10/20/2219204.html
Let's talk about my own solution:
In this position, there is a XXX which turns red, just remove it. I don't know how everyone else solves this problem.
Good luck to all the friends who have encountered this problem!