1

I keep on getting Manifest merger error. The Gradle dependency is shown in the image attached.

Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:customtabs:25.3.1] AndroidManifest.xml:24:9-31
is also present at [com.android.support:design:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1).
Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:22:5-24:34 to override.    
Muthukrishnan Rajendran
  • 11,122
  • 3
  • 31
  • 41
shubham johar
  • 268
  • 1
  • 9
  • You are using multiple different versions of the Android Support Library artifacts. If you edit your question and post the `dependencies` closure from `app/build.gradle`, perhaps we can give you more specific advice. – CommonsWare Jul 02 '17 at 21:08
  • You can try to exclude support libs from customtabs dependency. – Emre Aktürk Jul 02 '17 at 21:44

1 Answers1

1

It's either you find the library that is using a different support library version or use a resolution strategy and add this at the end of your app module build.gradle:

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.0'
            }
        }
    }
}

For more information please check: Android Support Repo 46.0.0 with Android Studio 2.3

Miguel Fermin
  • 380
  • 1
  • 3
  • 13