即使我更改了minsdkversion
和compile
Error:Execution failed for task ':hoppingBird:processDebugManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 9 declared in library [com.google.android.gms:play-services-ads:9.8.0] C:\Users\mohssin\Downloads\Documents\HoppingBird\hoppingBird\build\intermediates\exploded-aar\com.google.android.gms\play-services-ads\9.8.0\AndroidManifest.xml
Suggestion: use tools:overrideLibrary="com.google.android.gms.ads.impl" to force usage
答案 0 :(得分:0)
有两个地方:
<强>的AndroidManifest.xml:强>
<uses-sdk android:minSdkVersion="9" ...
和 build.gradle:
defaultConfig {
minSdkVersion 9
...
}
答案 1 :(得分:0)
根据 Google的文档
要在使用Google Play服务SDK时测试您的应用,您必须使用以下任一项:
1. A compatible Android device that runs Android 2.3 or higher and includes Google Play Store.
2. The Android emulator with an AVD that runs the Google APIs platform based on Android 4.2.2 or higher.
所以只需将minimum sdk version
更改为9
(API级别:9 - &gt; Android 2.3)
在 AndroidManifest.xml
中 <uses-sdk android:minSdkVersion="9" />
在 build.gradle :
中defaultConfig {
minSdkVersion 9
}
和重建您的项目。 以下是设置Google Play Services
的链接