报错内容:
Error:Execution failed for task ':DaPingGuo:processdapinguoManifest'.
> Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:46:9-36is also present at [com.dadada.analysis:dadadaio:3.2.1] AndroidManifest.xml:16:9-35 value=(true).
Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:44:5-576:19 to override.
一般会在引入第三方jar包的时候出现冲突~
根据建议只要添即可解决:
原代码
<application
android:name="com.dapingguo.application.MyApplication"
android:allowBackup="false"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppBaseTheme">
根据修改意见添加以下代码:
tools:replace="android:allowBackup"
<application
android:name="com.dapingguo.application.MyApplication"
android:allowBackup="false"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppBaseTheme"
tools:replace="android:allowBackup">
成功!!!