为什么皮棉约fullBackupContent警告警告时allowBackup是假的? [英] Why a lint warning about fullBackupContent warning when allowBackup is false?

查看:1352
本文介绍了为什么皮棉约fullBackupContent警告警告时allowBackup是假的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于的应用程序的Andr​​oid版本:allowBackup =假,Android的皮棉报道:

For an app with android:allowBackup="false", Android lint reports:

应该明确设置。'机器人:fullBackupContent,以避免备份的GCM设备特定REGID

Should explicitly set 'android:fullBackupContent' to avoid backing up the GCM device specific regId.

这是刚刚在皮棉规则中的漏洞,还是我真的需要关注的REGID得到备份并恢复到其他设备?

Is this just a bug in the lint rule, or do I really need to be concerned about the regId getting backed up and restored onto another device?

推荐答案

这的确是一个的错误,固定在1.4 。现在,你只能得到这个皮棉警告,当 allowBackup =真正的或属性丢失(默认为true)

This was indeed a bug that was fixed in AS 1.4. Now you only get this lint warning when allowBackup="true" or the attribute is missing (which defaults to true)

这篇关于为什么皮棉约fullBackupContent警告警告时allowBackup是假的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆