Uses-sdk: minSdkVersion 7 cannot be less than version 9 declared in the library

I am using Android Studio version 1.2.2.

My min sdk project is 7, and I want to use the google play service, which requires min sdk 9 and above. Therefore, I use below to override the library library.

Although I get the following error:

Error: execution completed for task ': processDebugManifest'.

The merge manifest failed: uses-sdk: minSdkVersion 7 cannot be less than version 9 declared in the library D: \ project_name \ build \ intermediates \ exploded-aar \ com.google.android.gms \ play-services-ads \ 7.5 +0.0 \ AndroidManifest.xml Suggestion: use tools: overrideLibrary = "com.google.android.gms.ads" for forced use

I am stuck at this point and cannot go forward. Any help is appreciated.

+5
source share
3 answers

You just need to upgrade minSdkVersion 7to minSdkVersion 9in the gradle file.

Its just means that your application should not have minSdkVersion (minimum SDK version) less than the minSdkVersion library.

update the gradle file and re-create the project.

+8
source

Update your build.gradle with this minSdkVersion 14

defaultConfig {
    applicationId "com.sample.myapp"
    minSdkVersion 14
    targetSdkVersion 23
    versionCode 3
    versionName "1.2"
}
+1
source

: : -sdk: minSdkVersion 1 , 9, [ test_artifact :: baseGameUtils] C:\Users\hp\Desktop\SpeedyCar\baseGameUtils\build\middleates\library_manifest\debug\AndroidManifest. xml, API, 1. : minSdk 1, minSdk 9, : overrideLibrary = "com.google.example. games.basegameutils " ( )

?????????? , ??

0

All Articles