当前位置:   article > 正文

异常Manifest merger failed with multiple errors, see logs

manifest merger failed with multiple errors, see logs

编译时出现异常打印如下:

提取关键信息就是Manifest merger failed with multiple errors, see logs,但是无法定位具体原因。这时候点击Studio的Terminal窗口,输入gradlew processDebugManifest -stacktrace 回车

错误信息很容易就找到了:tools:replace specified at line:5 for attribute android:appComponentFactory, but no new value specified.

解决异常方式:在AndroidManifest.xml文件夹下添加一行代码:

android:appComponentFactory = "angthing" //可以时任意值

  1. <application
  2. android:allowBackup="true"
  3. android:icon="@mipmap/ic_launcher"
  4. android:label="@string/app_name"
  5. android:roundIcon="@mipmap/ic_launcher_round"
  6. android:supportsRtl="true"
  7. tools:replace="android:appComponentFactory"
  8. android:appComponentFactory = "angthing"
  9. android:theme="@style/AppTheme" tools:ignore="GoogleAppIndexingWarning">

 

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

闽ICP备14008679号