gpt4 book ai didi

android - 'com.google.android.gms.drive.Drive' 已弃用

转载 作者:行者123 更新时间:2023-11-29 02:20:07 25 4
gpt4 key购买 nike

我正在使用 Saved Games 示例应用程序的一部分来保存解锁的关卡或购买的 Prop 。如果用户已将这些保存在 Google Drive 中,他可以在重新安装应用程序或使用其他设备使用他的 Google 帐户后恢复这些。

更新到“com.google.android.gms:play-services-games:18.0.0”后,我已经“弃用”了

.requestScopes(Drive.SCOPE_APPFOLDER)

我读入了https://developers.google.com/drive/android/deprecation那个

The Drive Android API is deprecated as of December 6, 2018 and will be turned down on December 6, 2019.

我的问题是:

  1. 将被禁用“deprecated”.requestScopes(Drive.SCOPE_APPFOLDER) ?

  2. 如果它会被禁用,为什么在https://developers.google.com/games/services/android/savedgames 中的Android 游戏中支持Saved Games?使用提示.requestScopes(Drive.SCOPE_APPFOLDER)在示例应用程序中 CollectAllTheStars2 https://github.com/playgameservices/android-basic-samples/blob/master/CollectAllTheStars2/src/main/java/com/google/example/games/catt2/MainActivity.java ?

  3. 如果它被禁用,人们如何才能保留保存的游戏功能?

最佳答案

为了保留保存的游戏功能,我将其替换为 Firebase Firestore 数据库。在Firebase Firestore documentation有人可以学习如何读取和写入他的数据。

关于android - 'com.google.android.gms.drive.Drive' 已弃用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56757554/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com