After eclipse imports apidemos, R. Java is not automatically generated.

Source: Internet
Author: User

After importing apidemos, the res folder displays an error. The SRC folder also displays an error. Open the SRC folder and check the error items. The R. Java file does not exist. Hundreds of times, found a lot, the title is the same, want to come to the content is similar, read one, said in string. add a right slash to the front of some lines in XML. After reading this file, we found that this right slash was already present.

Later I thought that when I created my own project, the android api I selected was 1.1. So I changed android to 2.2 in project-> properties, and applied it. After a while, OK, R. the Java file appears.

I don't know if other people's situations are different. My problem is solved in this way.

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.