清单合并失败:用途-SDK:的minSdkVersion 14不能比L型小 [英] Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version L
问题描述
我跟着<一href="http://stackoverflow.com/questions/24438170/manifest-merger-failed-uses-sdkminsdkversion-14">following主题没有结果。决定找到|在项目文件夹的grep
所有支持-V4
内容并删除它们。每次我做和运行项目用respons:
I've followed following topic with no result. Decided to find|grep
all support-v4
contents in project folder and remove them. Every time I make and run project it respons with:
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version L declared in library com.android.support:support-v4:21.0.0-rc1
我的 build.gradle
的模块是:
apply plugin: 'com.android.application'
android {
compileSdkVersion 19
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "com.android"
minSdkVersion 14
targetSdkVersion 17
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.google.android.gms:play-services:4.2.+'
compile 'com.android.support:appcompat-v7:+'
}
build.gradle
从项目根:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.2'
}
}
allprojects {
repositories {
jcenter()
}
}
我知道这是类似的话题,但建议sollution不适合这种情况。 我想AP preciate这一切都依赖它可能在这个问题影响结构的任何解释。
I know it is similar topic but suggested sollution does not fit this case. I would appreciate any explanation of this all dependencies structure which might have impact in that problem.
当我们找到| grep的
为支持-V4它看起来像这样这个项目文件夹内:
When we find|grep
for "support-v4" inside this project folder it looks like this:
...\.gradle\1.12\taskArtifacts\fileSnapshots.bin
...\.gradle\1.12\taskArtifacts\taskArtifacts.bin
...\.idea\workspace.xml
...\.idea\libraries\support_v4_21_0_0_rc1.xml
...\app\app.iml
...\app\build.gradle
...\app\build\intermediates\incremental\mergeResources\debug\merger.xml
...\build\intermediates\model_data.bin
问候
推荐答案
替换:
compile 'com.android.support:appcompat-v7:+'
与
compile 'com.android.support:appcompat-v7:19.1.0'
在一般情况下,不要在上面的版本级别使用 +
通配符。如果你想使用 19.1。+
,甚至 19。+
,我不认为(虽然别人会)。
In general, do not use +
wildcards at the top version level. If you wanted to use 19.1.+
, or even 19.+
, I wouldn't argue (though others would).
这篇关于清单合并失败:用途-SDK:的minSdkVersion 14不能比L型小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!