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 · 3 comments
Open

Add the lib to a new project has error #161

alizera opened this issue Aug 2, 2021 · 3 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!

@thiago-you
Copy link

Hi @alizera @liujinlong123 @chenwwayne , how you guys doing?

I ported this library with updated dependencies and configurations, also moved out from JCenter do use Jitpack.io:

https://github.com/thiago-you/range-seekbar

  • Move from JCenter to Jitpack.io
  • Migrate do Androidx libraries
  • Drop jetifier support
  • Update dependencies and libraries
  • Update configurations
  • Kotlin compatibility

Check it out!

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

4 participants