Reputation: 5954
I am trying out an Android wear project on syncing build.gradle I am getting below error.
Error:
uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in library com.google.android.gms:play-services-wearable:5.0.77
Error:Execution failed for task ':mobile:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in library com.google.android.gms:play-services-wearable:5.0.77
Does this mean if I implement android wear for API 18 and more then I will not be able to support API 8 phones? (I know Android wear supports API 18 and more)
This is something strange...
Thanks!
Upvotes: 0
Views: 741
Reputation: 40734
As of version 4.0 of Google Play Services, froyo (API 8) is no longer supported. That said, you have options. You can still build an app that uses the latest APIs in Google Play Services, but you must:
uses-sdk
declaration in the manifest of Google Play Services, and the min-sdk
declaration in your application's manifest - so it fails to merge them. Use the APIs available in the Gradle Manifest merger to force it to accept your value. I believe Markers is what you're looking for: docs.Build.VERSION.SDK_INT
at runtime, that Froyo devices will not try to use any APIs in Google Play Services. This would cause a crash.Upvotes: 5