简体   繁体   中英

I am getting this error “Failed processing manifest ”

So I'm getting this error:

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.

on my app, I'm currently developing on android studio.

@android: ' is incompatible with attribute fullBackupContent (attr)

In fullBackupContent of <application tag of the AndroidManifest.xml , you've set something like this:

@android/anything

Or just @android

Which is not true and it only takes boolean like true or false .

Check the error:

reference|boolean.

I think you have wrongly used @android/name_of_file_for_backup_rules in place of @xml/ . The fullBackupContent attribute points to an XML file that contains backup rules. For example:

<application ...
    android:fullBackupContent="@xml/my_backup_rules">
</application>

The my_backup_rules.xml has to be created in res/xml for backup rules. For Example:

<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
    <include domain="sharedpref" path="."/>
    <exclude domain="sharedpref" path="device.xml"/>
</full-backup-content>

Refer to for more info : Back up user data with Auto Backup developers.google.com :

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM