是否已弃用Google Play游戏服务的“保存的游戏”功能?
在其网站上,已保存的游戏未列为已弃用。
https://developers.google.com/games/services/android/savedgames
但是,当在代码中指定Drive范围时,Android Studio会提供代码提示,说明该功能已弃用,并且在Google Drive API网站上指出该功能已弃用。
https://developers.google.com/drive/android
网站建议迁移到Drive REST API?
并且该网站建议迁移到Firebase Cloud Firestore。
强烈建议需要应用程序数据存储的客户端迁移到非Drive解决方案,例如Cloud Firestore。
任何清晰度都将不胜感激。
答案 0 :(得分:2)
不推荐使用Drive API。我想保存的游戏内部实现现在使用Drive REST API。
将Drive.SCOPE_APPFOLDER
替换为new Scope(Scopes.DRIVE_APPFOLDER)
,以清除Lint警告。如果您检查内部结构,就会发现它们是相同的。