赞
踩
项目中经常引用第三方库导致AndroidManifest.xml中appComponentFactory冲突
报错
Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0-alpha3] AndroidManifest.xml:22:18-91
is also present at [androidx.core:core:1.0.1] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:9:5-47:19 to override.
解决办法
在AndroidManifest.xml中application标签添加
tools:replace="android:appComponentFactory"
如果还是报错
Manifest merger failed with multiple errors, see logs
继续添加
android:appComponentFactory=""
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。