当前位置:   article > 正文

Manifest merger failed : Attribute application@appComponentFactory

manifest merger failed : attribute application@appcomponentfactory value=(an

项目中经常引用第三方库导致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.
  • 1
  • 2
  • 3

解决办法
在AndroidManifest.xml中application标签添加

tools:replace="android:appComponentFactory"
  • 1

如果还是报错

Manifest merger failed with multiple errors, see logs
  • 1

继续添加

android:appComponentFactory=""
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/木道寻08/article/detail/824140
推荐阅读
相关标签
  

闽ICP备14008679号