android - 我收到此错误“处理清单失败”
问题描述
所以我收到了这个错误:
Android resource linking failed
Output: C:\Users\tomas\AndroidStudioProjects\app\app\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml:11: error: '@android:' is incompatible with attribute fullBackupContent (attr) reference|boolean.
error: failed processing manifest.
在我的应用程序上,我目前正在 android studio 上开发。
解决方案
我认为您错误地使用@android/name_of_file_for_backup_rules
了@xml/
. fullBackupContent 属性指向包含备份规则的 XML 文件。例如:
<application ...
android:fullBackupContent="@xml/my_backup_rules">
</application>
必须在 res/xml 中为备份规则创建 my_backup_rules.xml。例如:
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
<include domain="sharedpref" path="."/>
<exclude domain="sharedpref" path="device.xml"/>
</full-backup-content>
有关更多信息,请参阅:使用 Auto Backup developers.google.com 备份用户数据:
推荐阅读
- python - 未找到模块错误,但它已安装在我的环境中(jupyter)
- javascript - 使用object-fit时如何删除背景层:包含;
- r - R Markdown:如何隐藏在 RStudio 中绘制的图?
- performance - Neo4j 导入:本地数据库 vs aura 数据库
- ruby - 算法全部用 Ruby 构建
- css - 如何使用 vuejs 为 gitlab 页面的自定义域设置正确的路径?
- rundeck - 在脚本中获取服务器 URL
- reactjs - 使用 reactjs 的 Fullcalendar 资源时间轴视图 - 更改插槽颜色
- flutter - 完成购买后,我收到开发人员错误,例如响应(应用内购买)
- node.js - Discord.js 画布错误:无法加载图像