Manifest merger failed : uses-sdk:minSdkVersion 14
Note: This has been updated to reflect the release of API 21, Lollipop. Be sure to download the latest SDK.
In one of my modules I had the following in build.gradle:
dependencies {
compile 'com.android.support:support-v4:+'
}
Changing this to
dependencies {
// do not use dynamic updating.
compile 'com.android.support:support-v4:21.0.0'
}
fixed the issue.
Make sure you're not doing a general inclusion of com.android.support:support-v4:+
or any other support libraries (v7, v13, appcompat, etc), anywhere in your project.
I'd assume the problem is v4:+
picks up the release candidate (21.0.0-rc1) latest L release which obviously requires the L SDK.
Edit:
If you need to use the new views (CardView, RecyclerView, and Palette), the following should work:
compile "com.android.support:cardview-v7:21.0.0"
compile "com.android.support:recyclerview-v7:21.0.0"
compile "com.android.support:palette-v7:21.0.0"
(Credit to EddieRingle on /androiddev - http://www.reddit.com/r/androiddev/comments/297xli/howto_use_the_v21_support_libs_on_older_versions/)
Another Edit
Be sure to see @murtuza's answer below regarding appcompat-v7 and upvote if it helps!
Android Studio 3.4 Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 14
As the error suggested you can also increase your project's minSdk version to 14 or above.
Go to your build.gradle(Module app) file and add the minimum SDK version like this:
android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 14 or above here
}
}
ERROR: Manifest merger failed : uses-sdk:minSdkVersion 7 cannot be smaller than version 14
There 2 options to solve this problem:
1. You need to increase the SDK-version in build.gradle(app)
or under Settings -> Gradle
and/or
2. Change the implementation of your RecyclerView
in build.gradle(app)
to a lower version. This one you are using here (androidx.recyclerview:recyclerview:1.0.0-beta01
) is the newest version.
You probably need this: com.android.support:recyclerview-v7
More of this, I suggest to watch this official Android Developer Migrating site:
https://developer.android.com/jetpack/androidx/migrate
Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library
As per the Google Play services blog post, Google Play services and Firebase, including the com.google.firebase:firebase-messaging
library have moved to a minSdkVersion
of 16. You'll need to change your minSdkVersion
to 16 or move back to an older version of all of the libraries.
What does it mean by Manifest merger failed : uses-sdk:minSdkVersion 9 cannot be smaller than version 14
It means that Your project uses library with minimum SDK 14 and in Your app You've set it to 9. Minimum SDK for the main project and libraries should be same.
Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 14 declared in library
You should change from:
apply plugin: 'com.android.application'
android {
compileSdkVersion 19
buildToolsVersion "26.0.2"
defaultConfig {
applicationId "bb.hoppingbird"
//minSdkVersion 14
//targetSdkVersion 19
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.android.support:support-v4:19.1.0'
compile 'com.google.android.gms:play-services:+'
}
to:
apply plugin: 'com.android.application'
repositories {
maven { url 'https://maven.google.com' }
}
android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
defaultConfig {
applicationId "bb.hoppingbird"
minSdkVersion 14
targetSdkVersion 26
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.android.support:support-v4:26.1.0'
compile 'com.google.android.gms:play-services:11.4.2'
}
Update:
Please follow these instructions:
Set Up Google Play Services
Support Library Setup
AndroidManifest Merging Errors: Error: uses-sdk:minSdkVersion 11 cannot be smaller than version 14 declared in library
I assume you are using the latest version of play services. Google play services have stopped supporting sdk versions lower than 14. So, you have to set your minSdkVersion
to 14. To change that, you have to go to app gradle file, there inside defaultConfig
brace, set minSdkVersion
to 14. After that, sync gradle then build and run the project.
defaultConfig {
.....
minSdkVersion 14
targetSdkVersion 25
versionCode 1
versionName "1.0"
}
If you really need to set minSdkVersion
to 11 (or lower than 14), use previous versions of play services.
Related Topics
Checkbox in Recyclerview Keeps on Checking Different Items
How to Disable Copy/Paste From/To Edittext
Android: Retrieving Shared Preferences of Other Application
Android.Content.Activitynotfoundexception:
Difference Between Fragmentpageradapter and Fragmentstatepageradapter
Cursorloader Usage Without Contentprovider
Push Notifications in Android Platform
Getcolor(Int Id) Deprecated on Android 6.0 Marshmallow (API 23)
Context.Startforegroundservice() Did Not Then Call Service.Startforeground()
How to Programmatically Tell If a Bluetooth Device Is Connected
How to Hide Soft Keyboard on Android After Clicking Outside Edittext
Animate Change of View Background Color on Android
How to Develop a Soft Keyboard For Android
How to Configure Gradle to Work "Offline" (Using Cached Dependencies)