gpt4 book ai didi

android - minSdkVersion 9 不能小于库中声明的版本 14

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:18:50 27 4
gpt4 key购买 nike

错误:任务 ':app:processDebugManifest' 执行失败。

Manifest merger failed : uses-sdk:minSdkVersion 9 cannot be smaller than version 14 declared in library [com.google.android.gms:play-services:11.0.4] C:\Users\hp elitebook\Desktop\voiceTranslator\app\build\intermediates\exploded-aar\com.google.android.gms\play-services\11.0.4\AndroidManifest.xml Suggestion: use tools:overrideLibrary="com.google.android.gms.play_services" to force usage

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:+'

最佳答案

您正在使用

compile 'com.google.android.gms:play-services:+'

您的 SDK 管理器中的此库已通过 com.google.android.gms:play-services:11.0.4 解析(请注意,如果您想使用最新版本,您必须使用 add the google maven repo ) .
此依赖项具有 minSdk =14,您不能使用 minSdk=9。

你必须改变

minSdkVersion 9

minSdkVersion 14

此外,由于您将依赖于最新的支持库,因此您必须更改用于编译的 API。使用:

compileSdkVersion 26

关于android - minSdkVersion 9 不能小于库中声明的版本 14,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46505207/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com