我收到了这个错误:
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\21.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'
}
答案 0 :(得分:1)
首先,选择 support-v4
或 support-v13
。没有两者,因为他们有大多数相同的类。鉴于您的minSdkVersion
为21,我建议您使用support-v13
。
然后,对于您选择的那个,请确保版本为21或更高版本(例如21.0.+
)。