My app was working just fine but when I tried to added AnyChart library to my project I got this error :
Execution failed for task ':app:processDebugMainManifest'.
> Manifest merger failed : Attribute application#label value=(App_GLPI) from AndroidManifest.xml:10:9-33
is also present at [com.github.AnyChart:AnyChart-Android:1.1.2] AndroidManifest.xml:13:9-41 value=(#string/app_name).
Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:7:5-84:19 to override.
Please anyone help me to solve this problem.
Thanks
Related
After trying many solution on web I didn't find solution to this problem.
> Task :app:mergeDebugResources FAILED
Execution failed for task ':app:mergeDebugResources'.
> A failure occurred while executing
com.android.build.gradle.internal.res.ResourceCompilerRunnable
> Resource compilation failed. Check logs for details.
ParseError at [row,col]:[13,192]
Message: Attribute "xmlns:android" was already specified for element "LinearLayout".
My xml Linearlayout is not having "xmlns:android" attributes. Still it keep asking for the same.
Thanks in advance!
"xmlns:android" You have this line added twice in your code in LinearLayout. Also, Try Invalidate & Cache Restart and then run the code.
Error:Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : Attribute meta-data#android.support.VERSION#value value=(26.0.0-beta1) from [com.android.support:appcompat-v7:26.0.0-beta1] AndroidManifest.xml:28:13-41
is also present at [com.android.support:support-v4:26.1.0] AndroidManifest.xml:28:13-35 value=(26.1.0).
Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:26:9-28:44 to override.
Try to fix the version mentioned in your gradle file.
All of the dependencies should have same version number.
Answer is already provided in ur error...
just goto ur manifest, inside application tag put this : tools:replace="android:value"
Edit version com.android.support:appcompat:26.1.0 and com.android.support:support:26.1.0 same.
Add this line into manifest:
<application
...
...
tools:replace="android:value">
I am integrating payumoney in my android application. I have read docs and see video for integration i.e < https://www.youtube.com/watch?v=gnQ0IF3XniM&t=740s >. Problem is when i am trying to import module dependency it gives me error that manifest merger failed with multiple error.
C:\Users\amit\Desktop\New folder (3)\SalwarTales-master\app\src\main\AndroidManifest.xml:22:9-38 Error:
Attribute application#icon value=(#drawable/logo) from AndroidManifest.xml:22:9-38
is also present at [:sdkui] AndroidManifest.xml:20:9-43 value=(#mipmap/ic_launcher).
Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml:20:5-72:19 to override.
C:\Users\amit\Desktop\New folder (3)\SalwarTales-master\app\src\main\AndroidManifest.xml:26:9-43 Error:
Attribute application#theme value=(#style/NoActionBar) from AndroidManifest.xml:26:9-43
is also present at [:sdkui] AndroidManifest.xml:22:9-40 value=(#style/AppTheme).
Suggestion: add 'tools:replace="android:theme"' to <application> element at AndroidManifest.xml:20:5-72:19 to override.
finally did it. very silly mistake. I was using Different launcher icon and app theme in both modules.
I am integrating payUMoney payment gateway with my android application but after integrating following error show in my Logcat
Logcat
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application#label value=(Buy Wid US) from AndroidManifest.xml:13:9-35
is also present at [PayBaniyyaIntegrate:payUMoneysdk:unspecified] AndroidManifest.xml:19:9-41 value=(#string/app_name)
Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:8:5-30:19 to override
after that I follow this link answer number 2
Manifest merger failed error
Error:(2) Resource entry activity_horizontal_margin is already defined.
Anyone has idea about this Error genre,
Error:Execution failed for task ':app:processDebugManifest'. Manifest
merger failed : Attribute
meta-data#com.google.android.gms.version#value
value=(#integer/google_play_services_version) from
AndroidManifest.xml:18:13-66 is also present at
[io.nlopez.smartlocation:library:3.0.11] AndroidManifest.xml:31:13-36
value=(6587000) Suggestion: add 'tools:replace="android:value"' to
element at AndroidManifest.xml:16:9-18:69 to override
in your manifest under application tag add tools replace tag, Like this application
android:icon="#drawable/icon"
android:label="#string/app_name"
tools:replace="android:value"
Then try to compile and run...