Manifest merger failed : uses-sdk:minSdkVersion 8 cannot be smaller
If you use
'com.android.support:support-v4:+'
It will suppose it can use 21.x since is the latest version (but not compatible with target less than L)
Change it to
'com.android.support:support-v4:20.+'
So it will download the latest 20.x version
Manifest merger failed : uses-sdk:minSdkVersion 19 cannot be smaller than version 21 declared in library
as per the error the library is to minSDK 21 , so you have to use that as minSDK ,as for the particular librays docs please go through in detail , as per build file from github it can be seen minSDK is set as 21.
see here in github of this build file from the library
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
}
}
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
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 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!
Related Topics
The Activity Must Be Exported or Contain an Intent-Filter
Urlconnection Getcontentlength() Is Returning a Negative Value
Android "Single Top" Launch Mode and Onnewintent Method
Pixel-Perfect Collision Detection Android
How to Send Array of Params Using Volley in Android
What Does '->' (Arrow) Mean in Gradle's Dependency Graph
How Get Value from Linkedhashmap Based on Index Not on Key
Android Maps Utils Clustering Show Infowindow
How to Chain Async Task Sequentially (Starting One After the Previous Asynctask Completes)
Android Debugging Inetaddress.Isreachable
How to Script the Java Debugger Command-Line Tool (Jdb)
Is Ruby Pass-By-Value or Pass-By-Reference
How to Find Gcd, Lcm on a Set of Numbers
How to Get the First Non-Null Value in Java