Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Implementing Designs for Android Starting with Design Mockups Setting Up Tools and Importing a Project

Joan Guerra Makaren
Joan Guerra Makaren
4,067 Points

Getting Android Studio error importing projects from Eclipse

This is the error, how to fix it?

This happens after importing the Ribbit project Ben Jakuben

Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version L declared in library com.android.support:support-v4:21.0.0-rc1

3 Answers

Joan Guerra Makaren
Joan Guerra Makaren
4,067 Points

The solution turned out to be:

configurations {
    all*.exclude group: 'com.android.support', module: 'support-v4'
}

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

You have to change your build.gradle, because with your current settings, gradle uses the latest version of the support library and this version is only for Android L, that's why you get this error

change to this line in your build.gradle

compile 'com.android.support:support-v4:13.0.0'