【问题标题】:I am getting this error "Failed processing manifest "我收到此错误“处理清单失败”
【发布时间】:2018-09-29 17:39:42
【问题描述】:

所以我收到了这个错误:

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 android-manifest


【解决方案1】:

我认为您错误地使用@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>

更多信息请参考:Back up user data with Auto Backup developers.google.com:

【讨论】:

    【解决方案2】:

    @android:' 与属性 fullBackupContent (attr) 不兼容

    AndroidManifest.xml&lt;application 标记中的fullBackupContent 中,您设置了如下内容:

    @android/anything
    

    或者只是@android

    这不是真的,它只需要像 truefalse 这样的布尔值。

    检查错误:

    reference|boolean.
    

    【讨论】:

      猜你喜欢
      • 2022-10-13
      • 1970-01-01
      • 2020-06-07
      • 1970-01-01
      • 2020-10-01
      • 2021-10-12
      • 1970-01-01
      • 2019-12-24
      • 1970-01-01
      相关资源
      最近更新 更多