【发布时间】:2018-03-12 07:49:24
【问题描述】:
错误:任务 ':app:processDebugManifest' 执行失败。
清单合并失败:uses-sdk:minSdkVersion 9 不能小于库 [com.google.android.gms:play-services:11.0.4] C:\Users\hp elitebook\Desktop\voiceTranslator 中声明的版本 14 \app\build\intermediates\exploded-aar\com.google.android.gms\play-services\11.0.4\AndroidManifest.xml 建议:使用 tools:overrideLibrary="com.google.android.gms.play_services" 强制使用
apply plugin: 'com.android.application'
android {
compileSdkVersion 17
buildToolsVersion "26.0.2"
defaultConfig {
applicationId "com.shaker.voicetranslator"
minSdkVersion 9
targetSdkVersion 17
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.android.support:appcompat-v7:18.0.0'
compile 'com.google.android.gms:play-services:+'
【问题讨论】:
-
只导入您需要的部分播放服务。没有人需要全部
标签: android android-gradle-plugin google-play-services build.gradle