Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.3.1-runtime (androidx.core:core:1.3.1) and support-v4-22.2.0-runtime (com.android.support:support-v4:22.2.0)
uj5u.com熱心網友回復:
You can add below lines into your gradle.properties file:
android.useAndroidX=true
android.enableJetifier=true
Details:
If you want to use androidx-namespaced libraries in a new project, you need to set the compile SDK to Android 9.0 (API level 28) or higher and set both of the mentioned Android Gradle plugin flags to true.
android.useAndroidX: When this flag is set to true, the Android plugin uses the appropriate AndroidX library instead of a Support Library. The flag is false by default if it is not specified.
android.enableJetifier: When this flag is set to true, the Android plugin automatically migrates existing third-party libraries to use AndroidX dependencies by rewriting their binaries. The flag is false by default if it is not specified.
uj5u.com熱心網友回復:
androidx和support混用了轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/285028.html
標籤:Android
上一篇:關于ViewBinding
