Using 24.01 Android gradle error - android

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.

Related

FirebaseUI Auth implementation error on Android studio

I was trying implement the basic default auth of FirebaseUI in my Android app.
When I tried to add the dependency com.firebaseui:firebase-ui-auth:2.3.0 the Android studio show the follow error on compile:
'com.android.support:appcompat-v7:26.+' (When I add the FirebaseUI dependency)
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute meta-data#android.support.VERSION#value value=(26.0.1) from [com.android.support:palette-v7:26.0.1] AndroidManifest.xml:25:13-35
is also present at [com.android.support:appcompat-v7:26.1.0] AndroidManifest.xml:28:13-35 value=(26.1.0).
Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:23:9-25:38 to override.`
Can someone help me?

Android Studio Manifest merger failed

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

Manifest Execution failed

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!

Sync Gradle Error When I try to add "compile 'com.facebook.android:facebook-android-sdk:[4,5)'" on my build.gradle dependencies

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

Android Gradlebuild

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'

Categories

Resources