Manifest merger failed : Attribu

2019-01-17  本文已影响8人  sunny635533

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

上一篇 下一篇

猜你喜欢

热点阅读