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

Build failed: Manifest merger failed #10

Closed
havinhthai opened this issue May 4, 2018 · 6 comments
Closed

Build failed: Manifest merger failed #10

havinhthai opened this issue May 4, 2018 · 6 comments

Comments

@havinhthai
Copy link

Version

react: 16.3.1
react-native: 0.55.4
react-native-gps-state: 0.0.2

Issue

Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:15:7-34
        is also present at [:react-native-gps-state] AndroidManifest.xml:15:9-35 value=(true).
        Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:11:5-77:19 to override.
@ismaserrano
Copy link

ismaserrano commented May 30, 2018

Add that attribute to Android manifest 'application' tag --> tools:replace="android:allowBackup". Then you have the previous error from override method (#8), just comment it!

@lequangtuananh
Copy link

Add that attribute to Android manifest 'application' tag --> tools:replace="android:allowBackup". Then you have the previous error from override method (#8), just comment it!

and then flow magus/react-native-facebook-login#233 (comment)

@mrigo
Copy link

mrigo commented Jun 19, 2019

I've followed your suggestions, but now I've

Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
	is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
	Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:29:5-111:19 to override.

And I can't add another tools property to the application tag...
How can I fix that?

Thanks
\m

@lbelavoir
Copy link

@mrigo did you find any solution ?

@mrigo
Copy link

mrigo commented Jul 19, 2019

The problem was that some of my libraries don't support androidx and some others do.
So I've checked all my external libraries' gradle and change the version of playServices, trying to balance every library with what it needs... devastating but that's the only way...

@lbelavoir
Copy link

Thanks @mrigo I was hoping for an easier solution but I guess I'll have to do it too

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