The new file in Android does not show the corresponding file in R summary of the method resolved

Source: Internet
Author: User

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

Related Article

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.