当前位置:   article > 正文

androidx出现Manifest merger failed with multiple errors, see logs_merge warnings warning: namespace 'androidx. appco

merge warnings warning: namespace 'androidx. appcompat' is used in multiple

记录个小知识点
androidx在迁移过程中,遇到三方库用的是不是androidx,
需要把

android.useAndroidX=true
android.enableJetifier=false
  • 1
  • 2

但是在合并过程中出现:
Manifest merger failed with multiple errors, see logs

一、使用命令行运行:

gradle :app:processDebugManifest --debug
  • 1

仔细查看日志,找到Error的东西:
会出现 有个错误提示你:

'tools:replace="android:appComponentFactory"
  • 1

然后在AndroidMenifest.xml中的application标签下添加:


        android:appComponentFactory="liucheng"

        tools:replace="android:appComponentFactory"
  • 1
  • 2
  • 3
  • 4

android:appComponentFactory这个里面的字符串任意写

二、butternkife不能用最新的,只能用9.0.0以下的版本,因为10.0.0只支持androidx

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

闽ICP备14008679号