開發中遇到一個問題,運行項目時,出現了一個這如下這樣的問題
問題: Manifest merger failed : Attribute application@allowBackup value=(true) 解決方法
解決辦法:
在AndroidManifest.xml中加入xmlns:tools="http://schemas.android.com/tools
<manifest package="xxx" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
在application節點添加
<application tools:replace="android:allowBackup">
如果有多個的話
<application tools:replace="android:icon,android:allowBackup">