Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manifest merger failed : Attribute application@label #41

Open
mosofsky opened this issue Sep 16, 2019 · 0 comments
Open

Manifest merger failed : Attribute application@label #41

mosofsky opened this issue Sep 16, 2019 · 0 comments

Comments

@mosofsky
Copy link

When I run ./gradlew assembleRelease on my application which includes com.bignerdranch.android:simple-item-decoration:1.0.0, I get the following error:

AndroidManifest.xml:23:9-36 Error:
        Attribute application@label value=(AirportList) from AndroidManifest.xml:23:9-36
        is also present at [com.bignerdranch.android:simple-item-decoration:1.0.0] AndroidManifest.xml:13:9-41 value=(@string/app_name).
        Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:21:5-46:19 to override.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processReleaseManifest'.
> Manifest merger failed : Attribute application@label value=(AirportList) from AndroidManifest.xml:23:9-36
        is also present at [com.bignerdranch.android:simple-item-decoration:1.0.0] AndroidManifest.xml:13:9-41 value=(@string/app_name).
        Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:21:5-46:19 to override.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 9s

For now I didn't try the workaround because I decided to implement the feature in a way that doesn't depend on simple-item-decoration, but I thought I should report the problem here in case you want to fix it. I guess app_name just needs to be removed from the AndroidManifest.xml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant