anonymous
anonymous

Reputation: 183

Unable to resolve target 'android-17'

I know there are some sort-of duplicates of this, but none of the answers have been able to help me so far.

When I open a project, I get the following error:

 [2014-01-07 14:18:00 - Permissions] Unable to resolve target 'android-17'

Does anybody know what may be the problem here?

Upvotes: 13

Views: 39021

Answers (7)

Supriyanto
Supriyanto

Reputation: 149

It's very simple:

  1. Click Android SDK Manager
  2. Download Android 4.2.2 (Api 17)

enter image description here

  1. After install Android 4.2.2(Api 17)
  2. Click right on project --> Properties --> Android --> Target Build Target
  3. Choose Android 4.2.2 Api 17.
  4. Finish

Upvotes: 0

Wisley Lov
Wisley Lov

Reputation: 31

  1. Open your Android SDK Manager, and make sure your SDK API is installed

  2. You might have several Android SDK folders installed, like me; check that your workspace build path is the one your machine defaults to.

Upvotes: 3

Chris Klingler
Chris Klingler

Reputation: 5294

Sometimes the error can appear when you are working with source code built with an ADT that is a higher version than what you are currently using. It could be worth it to see if ADT has a later version than you are working. Sometimes ADT (especially with Eclipse. Link to get new here: https://developer.android.com/sdk/index.html) cannot find updates when asked to find them so you may need to install the newest version and overwrite/delete the old version

Upvotes: 1

Mark Cramer
Mark Cramer

Reputation: 2854

The target API in project.properties may be different from the one you have installed. This may happen if you reinstall Eclipse, for example. Open the Android SDK Manager and check to see which version of the API you have installed. Then go to project.properties and set "target=android-xx" when "xx" is your API version.

Upvotes: 0

shabby
shabby

Reputation: 3222

goto your sdk manager.exe open it, check the API 17 checkbox and click the 'install x packages' button, this will download and install these packages, if the project still shows error go in your project build path and fix the library path error if any

Upvotes: 1

FOliveira
FOliveira

Reputation: 556

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

Upvotes: 30

Emmanuel
Emmanuel

Reputation: 13223

You are probably trying to use a library that was built using API 17 and you do not have it installed. If you are using API 18+ you will be fine.

Upvotes: 1

Related Questions