【发布时间】:2015-03-23 22:45:25
【问题描述】:
我的应用中需要这段代码:
//compile 'com.google.android.gms:play-services:6.+'
但我还需要 minSdkVersion 为 7,这不起作用。 错误:
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 7 cannot be smaller than version 9 declared in library com.google.android.gms:play-services:6.1.71
这是我的 Gradle 的内容:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "codificador.aplicacion.safrapp.codificadorandroid"
minSdkVersion 7
targetSdkVersion 21
versionCode 1
versionName "1.0.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.0'
//compile 'com.google.android.gms:play-services:6.+'
}
难道没有更小的版本的 compile 'com.google.android.gms:play-services?, 因为这是导致我的错误的原因。
更新:
我把它改成compile 'com.google.android.gms:play-services:5.0.89'
新错误:
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 7 cannot be smaller than version 9 declared in library com.google.android.gms:play-services:5.0.89
【问题讨论】:
-
编译'com.google.android.gms:play-services:5.0.89'
-
我试过了,又出现一个错误:检查更新。
-
你的清单是什么?
-
I also need the minSdkVersion to be 7API 7 级已退出市场,如今:不到全球市场的 0.1%。 developer.android.com/about/dashboards/index.html
标签: java android-studio google-admin-sdk