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