iammert / MaterialIntroView

Material Intro View is a showcase android library.
2.44k stars 373 forks source link

Manifest merger failed for atribute application@label value #52

Open MatteCarra opened 8 years ago

MatteCarra commented 8 years ago

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>
MatejVukosav commented 7 years ago

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

safinahali commented 6 years ago

Hi.

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

ulagapandi2upms commented 5 years ago

Give this a try:

Add this to

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

tools:node="replace"

samigimix commented 3 years ago

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!