Unable to resolve target ' android-xx ' solution

Source: Internet
Author: User

After setting up the Android build environment, I use Eclipse to import the Android source code compiled by flushing git, and I will prompt

Unable to resolve target ' android-17 '

such as "Unable to resolve target ' android-xx '" error prompt.

This is because the project target settings in Project.Properties in the imported item code are inconsistent with the current Eclipse environment settings.

Workaround:

After you import the Android project, see the left of your project file, select your Android project name project, right click, pop-up options, then select Propeties-->android, then you will see the following display:

According to the picture shown, you will see the different Android version corresponding to the API number, choose the correct, if not the API you want, then go to the Android SDK manager to download the corresponding API of the Android version.

You can go to Android SDK Manager to see which Android version you have and the corresponding API level, below is the Android SDK Manager:

Reprint Please specify: Stride ' s blog»unable to resolve target ' android-xx ' solution

Unable to resolve target ' android-xx ' solution

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.