【发布时间】:2020-08-14 05:06:35
【问题描述】:
我用的是离子框架,我用过
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
<application android:allowBackup="false" tools:replace="android:allowBackup" />
<application android:fullBackupOnly="false" />
</edit-config>
避免安卓应用中的备份服务。
我在config.xml 中添加了它,它会自动添加到清单中,但需要在清单中手动添加xmlns: tools="http://schemas.android.com/tools",否则构建失败并引发错误:
The prefix "tools" for attribute "tools: replace" associated with an element type "application" is not bound.
有什么方法可以将 xmlns 从配置文件自动添加到 android 清单中?
【问题讨论】:
标签: android cordova ionic-framework android-manifest xml-namespaces