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 #21441

Closed
Alain00 opened this issue Jun 6, 2020 · 2 comments
Closed

Manifest merger failed #21441

Alain00 opened this issue Jun 6, 2020 · 2 comments
Labels

Comments

@Alain00
Copy link

Alain00 commented Jun 6, 2020

I'm using capacitor with @ionic/react and after execute npx cap add android, open the project, and sync gradle, Android Studio gives me the following error when i try to run the app

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.2.0] AndroidManifest.xml:24:18-86 value=(androidx.core.app.CoreComponentFactory).
	Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:5:5-43:19 to override.

This is a repo to reproduce
https://github.com/Alain00/IonicTestApp

@ionitron-bot ionitron-bot bot added the triage label Jun 6, 2020
@liamdebeasi
Copy link
Contributor

Thanks for the issue. I am going to close this as a duplicate of ionic-team/capacitor#2744. You should update your Capacitor CLI to use v2 and then remove the Android platform/re-add it.

@ionitron-bot
Copy link

ionitron-bot bot commented Jul 8, 2020

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Jul 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants