Unable to resolve target 'android-16'

后端 未结 13 1805
广开言路
广开言路 2020-12-01 01:02

I am using Android 4.2.2. After installing the latest SDK, when I open the eclipse I could see all the projects having the problem during the build. Following is the error i

相关标签:
13条回答
  • 2020-12-01 01:17

    In eclipse I did all the above and the error did not go away.

    Then I simply RESTARTED eclipse and that solved it ;)

    So, do the above and then restart eclipse!

    0 讨论(0)
  • 2020-12-01 01:19

    Unable to resolve target 'android-16'

    Make sure which version your are using and set that version in the mentioned files

    To solve this problem we need to change 3 files as follows.

    project.properties (target=android-18)

    AndroidManifest.xml (android:targetSdkVersion="18")

    \bin\AndroidManifest.xml (android:targetSdkVersion="18")

    As mentioned above the 3 files has the same version number.

    0 讨论(0)
  • 2020-12-01 01:23

    Also worth noting - Under Ubuntu 12.04, I installed the Android SDK Tools for API version 16, exited and restarted Eclipse and it resolved the issue without changing the target to version 16 and back to 18

    0 讨论(0)
  • 2020-12-01 01:25

    To resolve the problem of "Unable to resolve target 'android-16'" set the targetSDKversion for library project for example "android-support-v7-appcompat".

    1. Expand the library project
    2. Open manifest file from the library (not the one in your application)
    3. Under the tag specify the "Target SDK version" to version of SDK installed (example to 18)
    4. Rebuild the library and application ( or restart Eclipse)

    That should solve it.

    enter image description here

    0 讨论(0)
  • 2020-12-01 01:27

    From the Android SDK Manager, install Android SDK Tools for API version 16.

    0 讨论(0)
  • 2020-12-01 01:29

    If you're using Eclipse, try changing the target build to something higher than API 17 (Right click -> Properties -> Android -> Project Build Target).

    If that removes the error, just change the target build back to API 17 afterwards.

    I had this issue when importing android-support-v7-appcompat, and changing the target builds back and forth fixed my problem.

    0 讨论(0)
提交回复
热议问题