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:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31
is also present at [com.android.support:recyclerview-v7:26.0.0-alpha1] 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.
Generally speaking (also Lint tells you so), you should not mix different versions of the support library. Even though this comes up with the manifest merger, because android.support.VERSION is also defined as meta data.
So to make sure this doesn't happen anymore, define version 26.0.0-alpha1 for all the support libraries. In your case especially for appcompat.
compile 'com.android.support:appcompat-v7:26.0.0-alpha1'
Related
This question already has an answer here:
Manifest Merger Error - Different versions of support library
(1 answer)
Closed 4 years ago.
After adding new library app showing error?
I am trying to add
compile 'com.github.badoualy:stepper-indicator:1.0.7'
and after added this my app showing error
Error:Execution failed for task ':sample:processShopifyDebugManifest'.
Manifest merger failed : Attribute meta-data#android.support.VERSION#value value=(25.4.0) from
[com.android.support:design:25.3.1] AndroidManifest.xml:27:9-31 is
also present at [com.android.support:appcompat-v7:26.0.0-beta2]
AndroidManifest.xml:28:13-41 value=(26.0.0-beta2). Suggestion: add
'tools:replace="android:value"' to element at
AndroidManifest.xml:23:9-25:38 to override.
May be this is right way to solve this issue
https://stackoverflow.com/a/45258773/10010192
Probably you are using multiple versions of Android support library. So Please choose one of version and use it for all libraries. Maybe you can try 25.4.0 for all. (You also need to change compileSdkVersion and targetSdkVersion to 25.4.0)
don't use 'compile' in build.gradle.
try to change
compile 'com.github.badoualy:stepper-indicator:1.0.7'
to
implementation 'com.github.badoualy:stepper-indicator:1.0.7'
How do I fix this Error?
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute meta-data#android.support.VERSION#value value=(26.0.0-alpha1) from [com.android.support:appcompat-v7:26.0.0-alpha1] AndroidManifest.xml:27:9-38
is also present at [com.android.support:gridlayout-v7:25.3.1] AndroidManifest.xml:24:9-31 value=(25.3.1).
Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:25:5-27:41 to override.
You have used a different version of Google Support libraries.
com.android.support:appcompat-v7:26.0.0-alpha1
Also
com.android.support:gridlayout-v7:25.3.1
Use common version for both libraries. that will help.
I think you are using Compile SDK 26, so use both libraries like below.
com.android.support:appcompat-v7:26.0.0-alpha1
com.android.support:gridlayout-v7:26.0.0-alpha1
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:design:25.3.1] AndroidManifest.xml:27:9-31
is also present at [com.android.support:appcompat-v7:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1).
Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:25:5-27:34 to override.
This is the message.
Change com.android.support:appcompat-v7:26.0.0-alpha1 to com.android.support:appcompat-v7:25.3.1.
Go to your AndroidManifest.xml file,
Select Merged Manifest from bottom left corner
On Right side, AndroidStudio will suggest you what is the issue in your project, and how it can be resolved.
Hope it helps!
I am trying to implement a Facebook login feature on my app and I followed every step until I encountered an "Execution failed for task ':app:processDebugManifest'" error. It says :
Manifest merger failed : Attribute meta-data#android.support.VERSION#value value=(26.0.0-alpha1) from [com.android.support:appcompat-v7:26.0.0-alpha1] AndroidManifest.xml:27:9-38
is also present at [com.android.support:cardview-v7:25.3.1] AndroidManifest.xml:24:9-31 value=(25.3.1).
Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:25:5-27:41 to override.
[EDIT]Thank you in advance guys. I am not sure how to add files so here's a picture of the build.gradle file.
You have dependency conflicts. Make sure all your com.android.support:.. imports are of the same version e.g. 25.0.0 and use fixed versions not 26+ as this can also cause problems.
edit: change com.android.support:appcompat-v7:26+ to com.android.support:appcompat-v7:25.3.1
I got this error because of lower version in SDK.
Manifest merger failed : Attribute
meta-data#android.support.VERSION#value value=(25.3.1) from
[com.android.support:recyclerview-v7:25.3.1]
AndroidManifest.xml:24:9-31 is also present at
[com.android.support:appcompat-v7:26.0.0-alpha1]
AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1). Suggestion: add
'tools:replace="android:value"' to element at
AndroidManifest.xml:22:5-24:34 to override.
add a supported library version whatever available in your SDK. its give a suggestion in build.gradle file of your app.