Google-play-services_lib Unable to resolve target Android-9

When I launch my Android ADT, most, if not all of my projects have a red exclamation next to them. And when I try to create and run them, I get an error message:

" google-play-services_lib] Unable to resolve target 'android-9' "

I'm not sure what that means, as I am updating with my updates with my Android SDK manager.

I tried restarting eclipse. I tried to download another Android-SDK and run from there, but still the same error.

Please help me in the right direction.

+42
android eclipse google-play-services android-build
Apr 19 '14 at 18:54
source share
8 answers

In fact, downloading the latest ADT package for Eclipse gives the same error when trying to import the google_play_services_lib (17) file. http://developer.android.com/sdk/index.html#download

Open the SDK manager, click "Deprecated" (as API 9 came about) and grab API 9. This is really what seems like a simple blunder and needs to be fixed. Hope this helps others.

+132
May 21 '14 at 9:58
source share

I had this problem after installing the latest updates using ADT.

In eclipse, I have a project and a project for google-play-services_lib.

I found that if you change the minimum version of sdk (as mentioned earlier) to more than 9, this is not enough. I also had to change the “Purpose of creating the project” (Properties / Android /) according to the version that I installed in the manifest.

+5
May 30 '14 at 23:04
source share

its version of mnimum sdk in ur manifest should be greater than version 9

+2
Apr 19 '14 at 22:29
source share

I set the project properties that set the purpose of the project build:

enter image description here

This works for me.

+2
Sep 08 '14 at 15:35
source share

just check "Deprecated" on the SDK manager and then install the missing one (API 9)

+2
Feb 13 '15 at 12:26
source share

Two fix options:

1) install Android 2.3.1 (API 9), but is currently deprecated.

enter image description here

2) Go to AndroidManifest.xml at least for android: minSdkVersion = "10"

+1
Nov 12 '14 at 0:07
source share

Change android: minSdkVersion = "9" to more than 9 in the AndroidManifest.xml file
those. android: minSdkVersion = "10"
By doing this, I solved my problem
Hope this helps!

0
Oct 07 '14 at 19:11
source share

This can happen when updating ADT. This may be due to google play services libraries from sync files. Just closing the library and importing will resolve the synchronization issue again.

0
Nov 21 '14 at 3:57
source share



All Articles