jason
jason

Reputation: 7164

Unable to resolve target 'android-19'

I want to work with Android API 19. I changed inside project.properties file target=android-19. In AndroidManifest.xml. I have this :

<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19" />

But in project properties I have this : enter image description here

How can I change API level to 19 there to get rid of the error in the title. Thanks.

Upvotes: 23

Views: 65221

Answers (5)

Hemanth G Nag
Hemanth G Nag

Reputation: 21

Window -> Preference -> Android. You should get a list of available targets. Click 'Apply' then 'Ok'.

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

Upvotes: 2

Vicky
Vicky

Reputation: 5136

  1. Right click on your project
  2. Go to properties -> Click Android (Left pane)
  3. Select Your project target version.
  4. Restart the Eclipse
  5. Clean the project (click Project menu-> clean)
  6. Now run the project.

Upvotes: 3

Raghuveer
Raghuveer

Reputation: 1857

  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.

Upvotes: 41

Ramoncho
Ramoncho

Reputation: 16

Window->Preferences->Android and validate your sdk location after that open your Android SDK Manager and validate if you have installed API 19

Upvotes: 0

buxik
buxik

Reputation: 2625

Check and add your SDK API20 to project, clean and build project.

You can ignore this warning

EDIT:

If you can work with 19 you must install API 19 through Android SDK

Upvotes: 0

Related Questions