[Solved] Google-play-services_lib Unable to resolve target ‘android-9

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

google-play-services_lib] Unable to resolve target ‘android-9’

I am not sure what this means as I am up to date with my updates with my Android SDK manager.

I have tried restarting eclipse. I have tried downloading another Android SDK and running from there but still the same error.

Please help guide me into the right direction.

Enquirer: ??? ?


Solution #1:

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

Open the SDK Manager, click obsolete (so API 9 shows up), and grab API 9. This is really something that seems like a simple oversight and should be fixed. Hope this helps others.

Respondent: neveroffline

Solution #2:

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

In eclipse I’ve got my project and a project for the google-play-services_lib.

I found that if you change the minimum sdk version (as said earlier) to greater than 9 it’s not enough. I also had to change the “Project build target” (Properties/Android/) to match the version that I’d set in the manifest.

Respondent: Andrew

Solution #3:

just check the ‘Obsolete’ on SDK manager then install missing (API 9)

Respondent: MrB

Solution #4:

its the mnimum sdk version in ur manifest its should be more than version 9

Respondent: Rod_Algonquin

Solution #5:

I fixed the project properties setting the project build target:

enter image description here

That works for me.

Respondent: jsanmarb

Solution #6:

Two options to fix this:

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

enter image description here

2) Change into the AndroidManifest.xml to at least android:minSdkVersion=”10″

Respondent: Jorgesys

Solution #7:

Change android:minSdkVersion=”9″ to more than 9 in AndroidManifest.xml file
i.e., android:minSdkVersion=”10″
By doing this i solved my problem
Hope this helps!!

Solution #8:

This may occur while you update the ADT. It could be because of the google play service libraries out of sync files. Simply closing the library and importing again will solve the out of sync issue.

Respondent: venkat

The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .

Leave a Reply

Your email address will not be published.