for fix the confilct: android:appComponentFactory in support-appcompat and androidx.core jar
See this: https://developer.android.com/jetpack/androidx/#new-project
solved: set these in gradle.properties,
android.useAndroidX=true
android.enableJetifier=true
#When 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.useAndroidX=true
#When set to true, the Android plugin automatically migrates existing third-party libraries to use AndroidX by rewriting their binaries. The flag is false by default if it is not specified.
android.enableJetifier=true
网友评论