android 錯誤Attribute application@allowBackup ......

開發中遇到一個問題,運行項目時,出現了一個這以下這樣的問題html

問題: Manifest merger failed : Attribute application@allowBackup value=(true) 解決方法

解決辦法:android

在AndroidManifest.xml中加入xmlns:tools="http://schemas.android.com/toolsapp

<manifest package="xxx"
          xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:tools="http://schemas.android.com/tools">

在application節點添加spa

<application
            tools:replace="android:allowBackup">

若是有多個的話 code

<application
        tools:replace="android:icon,android:allowBackup">
相關文章
相關標籤/搜索