MaterialIntroView icon indicating copy to clipboard operation
MaterialIntroView copied to clipboard

Manifest merger failed for atribute application@label value

Open MatteCarra opened this issue 8 years ago • 4 comments

I'm gettings this error

Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@label value=(@string/my_app_name) from AndroidManifest.xml:14:9-51
    is also present at [com.github.iammert:MaterialIntroView:1.5.2] AndroidManifest.xml:13:9-41 value=(@string/app_name).
    Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:10:5-62:19 to override.

My manifest:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="mypackage">

    <application
        android:allowBackup="true"
        android:name=".MyApplication"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/my_app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
    </application>
</manifest>

MatteCarra avatar Sep 18 '16 09:09 MatteCarra

You can write tools:replace="label" in your app manifest to override lib label data.

MatejVukosav avatar Jun 15 '17 19:06 MatejVukosav

Hi.

It recreates the manifest file when I edit it on each build. How did you work around that issue?

safinahali avatar Jul 26 '18 15:07 safinahali

Give this a try:

Add this to

xmlns:tools="http://schemas.android.com/tools" Add this to

tools:node="replace"

ulagapandi2upms avatar Oct 16 '18 04:10 ulagapandi2upms

Give this a try:

Add this to

xmlns:tools="http://schemas.android.com/tools" Add this to

tools:node="replace"

I used it but after app launches it crashes!

samigimix avatar May 16 '21 06:05 samigimix