I had the common errors like when trying to setup the fb sdk such as ANDROID_BUILD_SDK_TOOLS ERROR and getbootclasspath() method error
but some of the solutions that people posted on SO has the minimum sdk as 14, instead of 9 (which is shown on the fb's guide). Now in my app's build.gradle file, if I use minSdkVersion 9 instead of 14, it wont work and it will say:
Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 9 cannot be smaller than version 14 declared in library
I have researched, but couldn't find the solution for using 9 because I want to support the app on Gingerbread.
If anyone has this kind of error
"uses-sdk:minSdkVersion 14 cannot be smaller than version 15"
Just downgrade FacebookSDK to 4.5.0
compile 'com.facebook.android:facebook-android-sdk:4.5.0'
nvm I solved it. All I had to do was put this in the app's manifest file:
> <uses-sdk android:targetSdkVersion="22" android:minSdkVersion="9"
> tools:overrideLibrary="com.facebook"/>
Related
I'm trying to build an app for API 7 which is the device I need to run it on.
I've set the minSDK to 7, and added the following:
<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="19"
tools:ignore="OldTargetApi"
tools:overrideLibrary="android.support.test.espresso,
android.support.v7.appcompat,
android.support.v4,
android.support.mediacompat,
android.support.fragment,
android.support.coreui,
android.support.coreutils,
android.support.graphics.drawable,
android.support.compat">
</uses-sdk>
However, during the (gradle) build I get the following error:
Error:Execution failed for task ':app:processDebugAndroidTestManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 7 cannot be smaller than version 8 declared in library [com.android.support.test.espresso:espresso-core:2.2.2] C:\Users\david\.android\build-cache\828bf92787e99464e08501328373b997b66ab556\output\AndroidManifest.xml
Suggestion: use tools:overrideLibrary="android.support.test.espresso" to force usage
Everything worked fine until I set the min sdk to 7 (it was 26).
What else do I have to do to get this to build? Thanks
If your android:minSdkVersion="7" is a mandatory, you can try using the old version of espresso in your app build.gradle with the following dependencies:
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.0'
You can found the version list in Testing Library Support Release Notes
uses-sdk:minSdkVersion 7 cannot be smaller than version 8 declared in
library
Your error is perfectly clear.Some of your included libraries configured to use with Minimum of SDK version 8.
Please downgrade the libraries to 7 or upgrade your App to 8.
Ok, this issue is resolved. As advised, I removed the reference to espresso, and found a solution to Dex problem on SO. Thanks to all who replied.
My app is targeting sdk 25, with minSdk 14, compiledSdk 25and buildToolsVersion 25.0.0
When I try to add following dependency,
compile 'com.firebaseui:firebase-ui-auth:2.3.0'
It gives: following error
Error:Execution failed for task ':app:processGoogleDebugManifest'.
Manifest merger failed with multiple errors, see logs
when I checked logs of AndroidManifest error:
It shows: uses-sdk:minSdkVersion 14 cannot be smaller than version 15 declared in library
and suggest me to add Suggestion: use tools:overrideLibrary="android.support.customtabs" to force usage.
when I am adding this, it gives various manifest merger errors.
And while finding the solution, someone suggested to chage sdk version to 26, but it also give various error.
I'm just beginner in this, so please help me out.
The error message you posted says it all:
uses-sdk:minSdkVersion 14 cannot be smaller than version 15
Change your minSdkVersion to 15 in order to use firebase-ui libraries.
As you can check here the Firebase UI-AUTH has a dependency with:
compile "com.android.support:customtabs:26.0.1"
Here you can find the official doc and you can check the same in the Manifest inside the library:
This package requires API level 15 or higher.
You can't change the minSdk required for a library and you can't have a minSdk = 14 if you use this library.
I read that it is not a option for you, but currently the minSdk=15 covers over the 99% of the distribution.
Here the updated distribution:
https://developer.android.com/about/dashboards/index.html
Hello guys i'm gald to be here, please i have that error, can you help me?
Error:Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 9 cannot be smaller than version 14 declared in library [com.google.android.gms:play-services:10.2.1] C:\Users\Khalil\StudioProjects\Android eBook Template\app\build\intermediates\exploded-aar\com.google.android.gms\play-services\10.2.1\AndroidManifest.xml
Suggestion: use tools:overrideLibrary="com.google.android.gms.play_services" to force usage
what i can do?
In your Manifest.xml file, update uses-sdk to version 14.
First Remove the google play library(in this case com.google.android.gms.play_services), then open manifests --> AndroidManifest.xml
and change min sdk version to 14
This Line:- android:minSdkVersion="14"
Also Change it in your build.gradle of app..
under the defaultConfig
Hope it helps!!
I'm trying to build a cordova android app with wikitude plugin. When I build the project using cordova build, I got an error:
Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version 15 declared in library [:wikitudesdk:]. I tried several answers here: Manifest merger failed : uses-sdk:minSdkVersion 14, but they didn't solve my problem.
Currently, my portion of build.gradle looks like:
dependencies {
// do not use dynamic updating.
compile 'com.android.support:appcompat-v7:20.+'
}
and I changed my AndroidManifest.xml to force the minsdkversion set to be 15:
<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="23" />
anybody has ideas to solve this?
Sorry, my bad, I shouldn't change the:
~\<Project>\platforms\android\build\intermediates\exploded-aar\wikitudesdk\AndroidManifest.xml.
Instead, I just changed the version in ~\<Project>\platforms\android\AndroidManifest.xml and it works. Also, there's no need to change the dependencies in build.gradle if you are using the latest version. It should be a quick and easy fix.
Error:Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in library [com.google.android.gms:play-services:8.4.0] C:\Users\admin\Desktop\RingtoneApp2\app\build\intermediates\exploded-aar\com.google.android.gms\play-services\8.4.0\AndroidManifest.xml
Suggestion: use tools:overrideLibrary="com.google.android.gms.all" to force usage
I used the site
http://developer.android.com/sdk/installing/migrate.html
You have a library (Play Services) that declares its minSdkVersion to be 9 but your application declares it to be 8. Since the library won't work on API 8, this combination is invalid. Eclipse didn't check for this but Android Studio does.
First Remove the google play library(in this case com.google.android.gms.play_services), then open manifests --> AndroidManifest.xml and change min sdk version to 9
This Line: android:minSdkVersion="9"
Also Change it in your build.gradle of app.. under the defaultConfig