How to Resolve Target 'Android-16'

Unable to resolve target 'android-16'

I have had the same problem, after an update I got a similar error.

It can be fixed to manually edit the project.properties file and update the android-16 part to the latest one you have installed. In your current case that is android-17.

I guess it can be configured using Android ADT as well, but I could not figure it out and this was quicker

Furthermore, you have to update your manifest as well, make sure you have android:targetSdkVersion set to 17.

Unable to resolve target 'android-17'

You can right click on your project -> properties -> Android -> Select the Target android version you want to compile and Apply !

If you don't have any target versions to compile, you probably need to download them on your SDK Manager

Unable to resolve target 'android-21'

Right Click on Project -> Properties -> android -> choose your target api level you have,
Then press Apply and Ok

And clean the project once and rebuild it.

Unable to resolve target 'android-XX'

  1. Right click on your project.
  2. Go to Properties.
  3. Choose Android on the left side.
  4. On the right, you can see a list of Android API versions. Choose the proper version (Android API 15).
  5. Click Apply.

If you don't see the proper version, click on the Window menu, go to Android SDK Manager and download Android API 15 (Android 4.0.3). Repeat the steps above.

In the picture below, you can see API 16; not 15. You can download API 15 using Android SDK Manager. If you already have it, click the check box next to Android 4.0.3, click Apply and then OK.

Sample Image

To download an SDK from the SDK manager in Eclipse, click on the Window menu, Android SDK Manager. You should see the following window. Check Android 4.0.3 which is API 15, and click Install.

Sample Image

Unable to resolve target 'android-15' until the SDK is loaded

In Eclipse go to window --> Android SDK manager and in sdk manager check whether you have installed sdk for api level 15 or not. And also right click on your project go to properties there is Android tab on left hand side pannel. Click on it that will show you project build target. Make it to higher version.

Unable to resolve target 'android-19'

  1. Go to Windows -> Android SDK Manager
    Install the Android API Level you want, in this case 19.

  2. Once you've finished installing, go to Window -> Preference -> Android.
    You should get a list of available targets. Click 'Apply' then 'Ok'.

  3. Now right click your project, go to properties. Click Android. Choose your desired target.

Unable to resolve target 'android-18' error

In ``default.properties` file .

set target=android-18.

Check also that you installed this API level and check it in properties window, like:

Sample Image

In my case 17 is selected

Unable to resolve target 'Google Inc.:Google APIs:16'

Modify the AndroidManifest.xml file so that any versions in there are Android 2.2. Also change the version of the SDK used by right clicking the project in eclipse and go to properties->android and change the version to 2.2. Some things might break though. Usually the version declared in the manifest is declared because the project uses SDK features only available for that version or later.



Related Topics



Leave a reply



Submit