question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Suggestion: add 'tools:replace="android:theme"' to <application> element at AndroidManifest.xml:18:5-65:19 to override.

See original GitHub issue

When using compile ‘net.rdrei.android.dirchooser:library:3.2@aar’, remove the theme in the application manifest. Only use theme for the activity.

:processDebugManifest
/<>/AndroidManifest.xml:21:9-40 Error:
    Attribute application@theme value=(@style/AppTheme) from AndroidManifest.xml:21:9-40
    is also present at [net.rdrei.android.dirchooser:library:3.2] AndroidManifest.xml:9:18-62 value=(@style/DirectoryChooserTheme).
    Suggestion: add 'tools:replace="android:theme"' to <application> element at AndroidManifest.xml:18:5-65:19 to override.

See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.

:processDebugManifest FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugManifest'.
> Manifest merger failed : Attribute application@theme value=(@style/AppTheme) from AndroidManifest.xml:21:9-40
    is also present at [net.rdrei.android.dirchooser:library:3.2] AndroidManifest.xml:9:18-62 value=(@style/DirectoryChooserTheme).
    Suggestion: add 'tools:replace="android:theme"' to <application> element at AndroidManifest.xml:18:5-65:19 to override.

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

BUILD FAILED

Total time: 0.8 secs

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
jaredsburrowscommented, Jul 26, 2017

Any update on this?

3reactions
jaredsburrowscommented, Apr 10, 2016

This allowed me to compile: http://stackoverflow.com/a/34079182/950427.

Read more comments on GitHub >

github_iconTop Results From Across the Web

flutter - add 'tools:replace="android:label"' to <application> ...
I am getting this error. Error: Attribute application@label value=(flutter_bloc_pattern) from AndroidManifest.xml: ...
Read more >
Manage manifest files
This page describes how our build tools ingest manifest files to determine the ultimate look and experience of your app.
Read more >
Sudden error Unable to merge android manifests.
20754: [Unity] Suggestion: add 'tools:replace="android:theme"' to <application> element at AndroidManifest-main.xml:5:3-14:17 to override.
Read more >
2 lines in Manifest to remove before sharing your Android ...
Suggestion : add 'tools:replace="android:supportsRtl"' to <application> element at AndroidManifest.xml:18:5-67:19 to override.
Read more >
[Solved]-Suggestion: add 'tools:replace="android:name"' to ...
... to element at AndroidManifest.xml to override-Flutter. ... Add tools:replace="android:theme" to the <application ... like below code.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found