Duplicate class android.support.v4.widget.TintableCompoundButton found in modules classes.jar

For an old Android project, change support-v4 in gradle to the reference of Android x, and compile and report an error

Duplicate class android.support.v4.widget.TintableCompoundButton found in modules classes.jar
...

Add the following configuration in gradle.properties

android.useandroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>