Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.1.0) from [com.android.support:support-v13:26.1.0] AndroidManifest.xml:28:13-35


#1

FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:processDebugManifest’. > Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.1.0) from [com.android.support:support-v13:26.1.0] AndroidManifest.xml:28:13-35 is also present at [com.android.support:appcompat-v7:25.4.0] AndroidManifest.xml:28:13-35 value=(25.4.0). Suggestion: add ‘tools:replace=“android:value”’ to element at AndroidManifest.xml:26:9-28:38 to override.

I am facing this error and removing and then installing some plugins.


#2

Its simple. Just add this to your build.gradle file

configurations.all {
    resolutionStrategy.eachDependency { DependencyResolveDetails details ->
        def requested = details.requested
        if (requested.group == 'com.android.support') {
            if (!requested.name.startsWith("multidex")) {
                details.useVersion '25.3.1'
            }
        }
    }
}

#3

Thanks man! It’s works perfect!!!


#4

Just follow this path inside your project folder:

/platforms/android/project.properties

Open the file, try to find these lines from here:

target=android-26
android.library.reference.1=CordovaLib
android.library.reference.2=app
cordova.system.library.1=com.android.support:support-v4:24.1.1+
cordova.gradle.include.1=cordova-plugin-googlemaps/pushapp-tbxml-android.gradle
cordova.system.library.2=com.google.android.gms:play-services-maps:11.6.2
cordova.system.library.3=com.google.android.gms:play-services-location:11.6.2
cordova.system.library.4=com.android.support:support-core-utils:24.1.0
cordova.system.library.5=com.google.android.gms:play-services-auth:11.6.2
cordova.system.library.6=com.google.android.gms:play-services-identity:11.6.2
cordova.system.library.7=com.android.support:support-v13:26.+
cordova.system.library.8=me.leolin:ShortcutBadger:1.1.17@aar
cordova.system.library.9=com.google.firebase:firebase-messaging:11.6.2
cordova.gradle.include.2=phonegap-plugin-push/pushapp-push.gradle
cordova.system.library.10=com.android.support:support-v4:25.+
cordova.system.library.11=com.android.support:appcompat-v7:25.+

and, replace this line with

cordova.system.library.11=com.android.support:appcompat-v7:26.+

Then run/build your ionic project…

Or you can mention com.android.support:appcompat-v7:26.1.0
Enjoy… :+1:


#5

Thanks alot its working…


#6

thanks. this work for me :slight_smile:


#7

yeah i Got it!!!


#8

Thank you that it is work perfect.