Mertalp Taşdelen Mertalp Taşdelen - 3 years ago 456
Android Question

Execution failed for task':app:processDebugManigest'

I got this error code in my code:

Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute value=(26.1.0) from [] AndroidManifest.xml:28:13-35
is also present at [] AndroidManifest.xml:25:13-35 value=(26.0.1).
Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:26:9-28:38 to override.

This is how my gradle(project-level) looks like:

android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
defaultConfig {
applicationId "com.example.mertalptasdelen.chatapp"
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner ""

These are my project dependencies:

compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('', {
exclude group: '', module: 'support-annotations'
compile ''
compile ''
compile ''
testCompile 'junit:junit:4.12'
compile ''
compile 'com.firebaseui:firebase-ui:2.4.0'

Also, I read this answer link Execution failed for task :app:processDebugManifest Android Studio 2.3.3 it's similar to my error(maybe same) but I'm unable to solve it.

Answer Source

The problem is related with firebase-ui library. From its documentation:

Upgrading dependencies

If you would like to use a newer version of one of FirebaseUI's transitive dependencies, such as Firebase, Play services, or the Android support libraries, you need to add explicit compile declarations in your build.gradle for all of FirebaseUI's dependencies at the version you want to use.

Because you use all of the firebase-ui, you need to add the specific support library version to your build.gradle. Something like this:

compile ""
compile ""
compile ""

compile ""
compile ""

compile ""
compile ""

And because you use firebase-ui:2.4.0, you need to use Firebase/Google Play version 11.4.0. So, change your firebase dependency to 11.4.0:

compile ''
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download