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.


Actually downloading the latest ADT bundle for Eclipse gives the same error when trying to import the google_play_services_lib (17).

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.

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.

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

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

I fixed the project properties setting the project build target:

That works for me.

Two options to fix this:

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

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

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!!

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.

Need Your Help

onClick on ViewPager not triggered

android android-viewpager

I set a click listener on a ViewPager, but the onClick event is never called. I guess the touch event detection of the ViewPager is interfering, but I can't see how to solve it...

I am getting Failed to load resource: net::ERR_BLOCKED_BY_CLIENT with Google chrome

c# .net

I am getting white page after running my project but its work with .net Client properly Do I need any settings in the browser?