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). 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.
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.