解决办法:
在AndroidManifest文件标签添加tools:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
然后在该权限的位置添加tools:
<application
android:name="xxxxxxxx"
android:allowBackup="false"
tools:replace="android:allowBackup"/>