Neha Mangla
Neha Mangla

Reputation: 1054

Unable to resolve target 'android-XX'

I am importing a project. It comes with errors in last activity file and these are the following entries in console:

[2013-04-04 12:00:59 - AndroidFragment] Unable to resolve target 'android-15'
[2013-04-04 12:10:31 - AndroidFragment] Unable to resolve target 'android-15'

I have fixed project setup and select the available target version by clicking on:

Project > Properties > Android > Project Build Target > Version 

But nothing happens.

Upvotes: 49

Views: 89233

Answers (2)

Raghunandan
Raghunandan

Reputation: 133560

  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.

enter image description here

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.

enter image description here

Upvotes: 143

Khemraj Sharma
Khemraj Sharma

Reputation: 58974

Update

1. Open Sdk Manager from Tools > Sdk Manager

screenshot sdkmanager 1

screenshot sdkmanager 2

2. Click on sdk which you want install, then click OK.

screenshot sdkmanager 3

Upvotes: 0

Related Questions