0
votes

I am trying to learn android in android studio.Now i imported an eclipse project in android studio and now while trying to run it it is not building.Some problems in gradle may be..

Error:Execution failed for task ':app:processDebugManifest'.

Manifest merger failed : uses-sdk:minSdkVersion 8 cannot be smaller than version L declared in library com.android.support:support-v4:21.0.0-rc1

my build.gradle

apply plugin: 'android'

android { compileSdkVersion 19 buildToolsVersion "19.1.0"

defaultConfig {
    applicationId "com.example.practise"
    minSdkVersion 8
    targetSdkVersion 19
}

buildTypes {
    release {
        runProguard false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
    }
}
}

dependencies {
compile 'com.android.support:support-v4:+'
compile 'com.android.support:gridlayout-v7:+'
}

Can anyone help me to find out the problem??

3

3 Answers

1
votes

Change your dependencies

dependencies {
 compile 'com.android.support:support-v4:19.1.0'
 compile 'com.android.support:gridlayout-v7:19.1.0'
}

Using the +, you are getting the last release.

Currently the last release is the compile 'com.android.support:support-v4:21 and it has a minSdk='L' because it is a preview release.

Use it only to test the android 'L' preview.

0
votes

Try editing the following line to your Android Manifest file, like so:

dependencies {
    compile 'com.android.support:support-v4:21+' 
}

Then your project should build.

0
votes

Change your dependencies in app/build.gradle to lower version

apply plugin: 'com.android.application'

android {
compileSdkVersion 20
buildToolsVersion "20.0.0"

defaultConfig {
    applicationId "com.eusecom.snowsmsden"
    minSdkVersion 16
    targetSdkVersion 20
}

buildTypes {
    release {
        runProguard false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
    }
}
}

dependencies {
compile 'com.android.support:support-v4:20.+'
compile 'com.android.support:appcompat-v7:20.+'
}