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

Add the lib to a new project has error #161

Open
alizera opened this issue Aug 2, 2021 · 2 comments
Open

Add the lib to a new project has error #161

alizera opened this issue Aug 2, 2021 · 2 comments

Comments

@alizera
Copy link

alizera commented Aug 2, 2021

I just create a new project with android studio 4.2.2 and added this library to it and get the following error:

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

Also tools:replace="android:appComponentFactory doesn't fix it.

@liujinlong123
Copy link

rootDir/gradle.properties add android.enableJetifier=true

@chenwwayne
Copy link

rootDir/gradle.properties add android.enableJetifier=true

It works, thanks!

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

3 participants