Reputation: 672
After import project to new Android Studio i have an error:
Error:Execution failed for task ':Tabview:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version L declared in library com.android.support:support-v4:21.0.0-rc1
What's wrong?
build.gradle:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.+'
}
}
allprojects {
repositories {
jcenter()
}
}
Upvotes: 2
Views: 3036
Reputation: 1164
If you are using
dependencies {
compile 'com.android.support:support-v4:+'
}
Change to
dependencies {
compile 'com.android.support:support-v4:20.+'
}
Additionally, some library of yours might be using com.android.support:support-v4:+ (which v21 is for android-L), so fix that with:
compile 'com.android.support:support-v4:20.+'
compile ('com.github.chrisbanes.actionbarpulltorefresh:extra-abs:+') { // example
exclude group: 'com.android.support', module:'support-v4'
exclude group: 'com.android.support', module:'appcompat-v7' // if you're using appcompat
}
Upvotes: 3
Reputation: 3425
Yes. this actually works. Thanks to Leonardo Cardoso. Mine build.gradle is
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:support-v4:20.+'
}
You might need to sync by doing File>Synchronize
Upvotes: 1
Reputation: 39519
you can also force to use the old manifest merger
useOldManifestMerger true
Upvotes: 0