Reputation: 669
I'm a beginner to android application development and i am unable to use com.android.support:appcompat-v7 support library.
I added dependencies to the project module in this way,
Project structure -> Module -> Dependencies -> Add Library Dependencies(then selected com.android.support:appcompat-v7:+) Finally Sync Project with gradle files.
Everything works fine while programming but whiling running the app it gives me an error saying " Error:Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version L declared in library com.android.support:appcompat-v7:21.0.0-rc1"
build.gradle file contains
apply plugin: 'com.android.application'
android {
compileSdkVersion 20
buildToolsVersion '20.0.0'
defaultConfig {
applicationId 'digiapes.harsha.apeonomy'
minSdkVersion 16
targetSdkVersion 20
versionCode 1
versionName '1.0'
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile files('libs/android-support-v4.jar')
compile 'com.android.support:appcompat-v7:+'
}
Upvotes: 0
Views: 3381
Reputation: 1006634
Replace:
compile 'com.android.support:appcompat-v7:+'
with:
compile 'com.android.support:appcompat-v7:19.1.0'
and see if that helps. You are pulling in an "L" Developer Preview version of the dependency, which will not work well in your case.
Upvotes: 3