Manifest merger failed

I believe the build.gradle needs some change, if I add RecyclerView library dependency then build, I have:

Error:Execution failed for task ‘:app:processDebugManifest’.

Manifest merger failed : Attribute value=(25.3.1) from [] AndroidManifest.xml:27:9-31
is also present at [] AndroidManifest.xml:24:9-38 value=(26.0.0-alpha1).
Suggestion: add ‘tools:replace=“android:value”’ to element at AndroidManifest.xml:25:5-27:34 to override.

What I did is in build.gradle (Module: app), add this stanza:

configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if ( == ‘’) {
if (!“multidex”)) {
details.useVersion ‘25.3.0’

Has any of you had the same issue?

1 Like

did you ever figure this out - I am getting same thing - thanks


Probably, VERSION of Android you use doesn’t support recyclerview.
This is because, your recyclerview is 26.0.0-alpha1 but
your appcompat is -v7:25.3.1
I suggest you change it as I wrote to below:

compile '' 
compile ''

you should change in your gradle,

targetSdkVersion 26
compileSdkVersion 26

if they don’t change.


Yes, I have.

It is recommended to use the same library versions for all your dependencies. Otherwise, you may see such similar error messages when gradle is attempting to make a build. Nevertheless, I use a manual approach. I get the list of all the different support library version used by my dependencies and enforce one version for all by typing out the conflicting library with the global version.

I see that you have enforced this programmatically. Did this work for you? If so, I’ll also adapt to this, saves me a lot of trouble. Thanks! :sunny: