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

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

Closed
jaredsburrows opened this issue Apr 10, 2016 · 7 comments

Comments

@jaredsburrows
Copy link
Contributor

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
@jaredsburrows
Copy link
Contributor Author

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

@Cyux07
Copy link

Cyux07 commented May 28, 2016

it can not work for me.

android:theme="@style/AppTheme"
        tools:replace="android:theme"
        tools:ignore="AllowBackup,GoogleAppIndexingWarning"
        >

error info

Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@theme value=(@style/AppTheme) from AndroidManifest.xml:11:9
    is also present at net.rdrei.android.dirchooser:library:3.2:9:18 value=(@style/DirectoryChooserTheme)
    Suggestion: add 'tools:replace="android:theme"' to <application> element at AndroidManifest.xml:6:5 to override
    is also present at net.rdrei.android.dirchooser:library:3.2:9:18 value=(@style/DirectoryChooserTheme)
    Suggestion: add 'tools:replace="android:theme"' to <application> element at AndroidManifest.xml:6:5 to override
Error:(11, 9) Attribute application@theme value=(@style/AppTheme) from AndroidManifest.xml:11:9
D:\projectname\app\src\main\AndroidManifest.xml

@BraisGabin BraisGabin mentioned this issue Sep 21, 2016
3 tasks
@jaredsburrows
Copy link
Contributor Author

Any update on this?

@sibelius
Copy link

is there any update on this one?

@passy passy closed this as completed in d3da68a Jan 21, 2018
passy added a commit that referenced this issue Jan 21, 2018
@ParkerK
Copy link
Contributor

ParkerK commented Jan 27, 2018

The latest commit fixed this. Is there an ETA when the new changes will be pushed to the repo? Thanks for all your work @passy !

@passy
Copy link
Owner

passy commented Jan 27, 2018

@ParkerK Do you mean in a release?

@ParkerK
Copy link
Contributor

ParkerK commented Jan 31, 2018

@passy yes

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

5 participants