13

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?

ligi
  • 39,001
  • 44
  • 144
  • 244
anonymous
  • 183
  • 2
  • 2
  • 9
  • 2
    Do you downloaded the API-17? – Aracem Jan 07 '14 at 15:11
  • 1
    possible duplicate of [Unable to resolve target 'android-15'](http://stackoverflow.com/questions/15804261/unable-to-resolve-target-android-15) – reixa Jan 07 '14 at 15:16
  • great visual explanation. http://stackoverflow.com/questions/15266653/unable-to-resolve-target-android-16/27372810#27372810 – Zar E Ahmer Dec 09 '14 at 06:40
  • If this problem is already solved, please consider marking one of the answers as correct to help others. – Vini.g.fer May 07 '15 at 22:55

7 Answers7

30

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

FOliveira
  • 558
  • 4
  • 9
3
  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.

Nathan Tuggy
  • 2,237
  • 27
  • 30
  • 38
Wisley Lov
  • 31
  • 2
1

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.

Emmanuel
  • 13,083
  • 4
  • 39
  • 53
1

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

shabby
  • 3,002
  • 3
  • 39
  • 59
1

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

Chris Klingler
  • 5,258
  • 2
  • 37
  • 43
0

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.

Mark Cramer
  • 2,614
  • 5
  • 33
  • 57
0

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
סטנלי גרונן
  • 2,917
  • 23
  • 46
  • 68
Supriyanto
  • 149
  • 2
  • 10