清单合并失败:minSdkVersion 不能与版本 L 不同
Manifest merger failed : minSdkVersion connot be different than version L
我遇到了这个错误:
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 21 cannot be different than version L declared in library C:\Users\usere\AndroidStudioProjects\p1\app\build\intermediates\exploded-aar\com.android.support\support-v4.0.0-rc1\AndroidManifest.xml
这是清单的摘录:
这是 build.gradle 文件:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion '21.0.0'
defaultConfig {
applicationId "com.frisbeeeapp.frisbeee"
minSdkVersion 21
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3'
compile 'com.makeramen:roundedimageview:1.5.0'
compile 'com.iangclifton.android:floatlabel:1.0'
//compile 'com.google.android.gms:play-services:5.0.89'
compile 'com.google.android.gms:play-services:6.1.71'
compile 'com.android.support:support-v13:20.0.+'
compile 'com.android.support:support-v4:21.0.+'
compile 'com.squareup.picasso:picasso:2.3.2'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.daimajia.slider:library:1.0.9@aar'
compile 'com.melnykov:floatingactionbutton:1.0.3'
}
首先,选择support-v4
或support-v13
。不要两者都有,因为它们有大部分相同的 类。鉴于你的 minSdkVersion
为 21,我建议你使用 support-v13
.
然后,无论您选择哪一个,请确保版本为 21 或更高版本(例如,21.0.+
)。
我遇到了这个错误:
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 21 cannot be different than version L declared in library C:\Users\usere\AndroidStudioProjects\p1\app\build\intermediates\exploded-aar\com.android.support\support-v4.0.0-rc1\AndroidManifest.xml
这是清单的摘录:
这是 build.gradle 文件:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion '21.0.0'
defaultConfig {
applicationId "com.frisbeeeapp.frisbeee"
minSdkVersion 21
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3'
compile 'com.makeramen:roundedimageview:1.5.0'
compile 'com.iangclifton.android:floatlabel:1.0'
//compile 'com.google.android.gms:play-services:5.0.89'
compile 'com.google.android.gms:play-services:6.1.71'
compile 'com.android.support:support-v13:20.0.+'
compile 'com.android.support:support-v4:21.0.+'
compile 'com.squareup.picasso:picasso:2.3.2'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.daimajia.slider:library:1.0.9@aar'
compile 'com.melnykov:floatingactionbutton:1.0.3'
}
首先,选择support-v4
或support-v13
。不要两者都有,因为它们有大部分相同的 类。鉴于你的 minSdkVersion
为 21,我建议你使用 support-v13
.
然后,无论您选择哪一个,请确保版本为 21 或更高版本(例如,21.0.+
)。