Jay-Goo / RangeSeekBar

 A beautiful and powerful SeekBar what supports single、 range、steps、vetical、custom( 一款美观强大的支持单向、双向范围选择、分步、垂直、高度自定义的SeekBar)
Apache License 2.0
2.48k stars 382 forks source link

Add the lib to a new project has error #161

Open alizera opened 2 years ago

alizera commented 2 years ago

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 commented 10 months ago

rootDir/gradle.properties add android.enableJetifier=true

chenwwayne commented 4 months ago

rootDir/gradle.properties add android.enableJetifier=true

It works, thanks!

thiago-you commented 2 weeks ago

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

Check it out!