Android Import Project Error resolution

Source: Internet
Author: User

Import Android source code, there are basic errors, R.java will not be automatically generated, because it is the first time to import engineering, engineering error R.java will not be automatically generated, the project has errors, of course, the simulator can not start, but also do not see the effect. Then online to find a variety of solutions, online solutions mainly have these kinds of

1. Select Menu Project >> Clean, if you tick on Bulid automatically (auto build deployment), click Clean to rebuild the project, because in general, The R.java file will be re-updated at this time, and will not be generated automatically if the project is wrong.

    Summary When importing other sources, The first step is to ensure that the SDK version of the source code is consistent with your eclipse default version.
View Source Version method: Open the Default.properties file to see how much this number is behind target=android-7.
Version correspondence: Target=android-3 <---> Android 1.5   ,target=android-4 <--- > Android 1.6,
target=android-7 <---> Android 2.1   ,target= Android-8 <---> Android 2.2 others under their own test.

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.