赞
踩
编译时出现异常打印如下:
提取关键信息就是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" //可以时任意值
- <application
- android:allowBackup="true"
- android:icon="@mipmap/ic_launcher"
- android:label="@string/app_name"
- android:roundIcon="@mipmap/ic_launcher_round"
- android:supportsRtl="true"
- tools:replace="android:appComponentFactory"
- android:appComponentFactory = "angthing"
- android:theme="@style/AppTheme" tools:ignore="GoogleAppIndexingWarning">
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。