We sometimes find that when we create a new file or directory, the corresponding static class or static property is not generated in the R.java of the Generated Java files (gen) file. At this point you may have the following situation. Note that the participation is resolved.
General normal R files will be updated on their own initiative. Cannot be updated, please check the format of file . Take the image as an example. It seems that Android only supports images in JPG and PNG format. This is not clear, or the name of your picture has a Chinese character or the name of your picture has capital letters these are not.
For example, the following picture format is illegal, so R file can not actively update picture 1.png//Picture can not Chinese characters image.png//pictures cannot have capital letters assuming that none of the above problems are determined. Method 1: (Clear) Clean up what the project sees:
Select "Clean" under "project" and select your own project to clean to see if the R file will be active
Method 2: (refresh) Refresh under Project Method 3: Delete the R file.
Under normal circumstances, eclipse will voluntarily generate an R file itself (note that. Save before deletion, sometimes not in generating an R file)
The new file in Android does not show the corresponding file in R summary of the method resolved