I really don't know what's the problem, I always get this error when I try to build my project
Error:Execution failed for task ':app:processReleaseManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 11 cannot be smaller than version 14 declared in library [com.google.android.gms:play-services:10.2.0] C:\Users\AYOUB\Desktop\Boiling ball studio\app\build\intermediates\exploded-aar\com.google.android.gms\play-services\10.2.0\AndroidManifest.xml
Suggestion: use tools:overrideLibrary="com.google.android.gms.play_services" to force usage
As stated in the error; you should update your minimum version from 11 to 14.
Google Play services need at least Android version 14 (4.0) to work.
Check this link from Google
Manifest Merger occurs when there is a mismatch in a version of your dependencies. So be careful to mention the version of your dependencies to be same.
And also make sure that the version is same in all the external libraries or a module, you are using.
Related
I'm going to use a library in my project and it shows error:
Error:Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version 15 declared in library [:library:] ... Suggestion: use
tools:overrideLibrary="test.com.library" to force usage
This prompt lets me know that imported liobrary using higher version (15) than my application min sdk version which is 14.
I want to know if I
I want to know if I use tools:overrideLibrary does it let my application to keep its min SDK version and be installed on phones with API14 or it is not the case? Beside I want to know what is the benefit for using tools:overrideLibrary over `minSdkVersion'?
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
Error:Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 7 cannot be smaller than version 14 declared in library [com.android.support:appcompat-v7:26.0.0-alpha1] E:\WorkSpace\AndStudio\Test1\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\26.0.0-alpha1\AndroidManifest.xml
Suggestion: use tools:overrideLibrary="android.support.v7.appcompat" to force usage
To use that support library version your min SDK needs to be at least 14.
Also you might want to actually ask a question rather than just pasting an error
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
I recently trying to move the project to Android Studio. I exporting the APK due to this error
Execution failed for task ':app:processReleaseManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in library com.google.android.gms:play-services:6.1.71
I have checked my manifest file but it was 9 instead of 8... What does that refering to... do I need to update anything... Note: I initially use eclipse and moving toward Android Studio.
This may help.
modify your minSdkVersion to 9 in your build.gradle
or you can use tools:overrideLibrary="com.google.android.gms" in uses-sdk tag of your menifest.