当我想建立我有这个错误
Error:Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 11 cannot be smaller than version 14 declared in library [com.google.android.gms:play-services:11.0.4] C:\Users\kamal.android\build-cache\a14382872a293855060ea80fddf386831adf48b2\output\AndroidManifest.xml Suggestion: use tools:overrideLibrary="com.google.android.gms.play_services" to force usage当我想建立我有这个错误
apply plugin: 'com.android.application'
compileSdkVersion 23
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "com.carpedeem.bonne"
minSdkVersion 11
targetSdkVersion 23
ndk {
modandroid {
uleName "player_shared"
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.google.android.gms:play-services:+'
compile files('libs/dagger-1.2.2.jar')
compile files('libs/javax.inject-1.jar')
compile files('libs/nineoldandroids-2.4.0.jar')
compile files('libs/PTAdChartboost.jar')
compile files('libs/PTAdRevMob.jar')
compile files('libs/support-v4-19.0.1.jar')
}
所有你需要做的是在的defaultConfig
更新您的minSdkVersion 11
到minSdkVersion 14
你的gradle文件。
这意味着您的应用程序不得有minSdkVersion
(最低SDK版本)小于您正在使用的任何库的minSdkVersion
- 在您的情况下[com.google.android.gms:play-services:11.0 .4]最小SDK为14的库。
更新您的gradle文件并再次生成项目。
是的,我这样做,我有其他eroor错误:(3,1)评估项目':应用程序'发生了问题。 >对于类型为org.gradle.api.Project的项目':app'中的参数[23]找不到方法compileSdkVersion()。 –
这是一个完全独立的问题。这与您的原始问题无关。你将不得不为这个问题发布一个新的问题,因为它不能用这些小细节和评论来解决。 –
将您的build.gradle
应用中的minSdkVersion
更改为14,并将您的compileSdkVersion
升级到7.0,将您的buildToolsVersion
升级到26.0.0。
[com.google.android.gms:play-services:11.0.4] use minSdkVersion> = 14 ..所以你需要设置你的minSdkVersion> = 14也 – ZeroOne
请问该怎么做? –