GoogleApiClient和Drive.API错误 [英] GoogleApiClient and Drive.API error
问题描述
我试图使保存的游戏在我的Android游戏。然而,我发现,如果我称之为
I am trying to enable Saved Game in my Android game. However, I find that if I call
builder.addApi(Drive.API);
builder.addScope(Drive.SCOPE_APPFOLDER);
选择帐户对话框不显示,即使在所有的,而我不能因此而签署。
the "Select Account" dialog doesn't even shown at all, and I cannot therefore sign in.
在取消线条和一切工作正常(登录,排行榜,成就),除了保存游戏。试图让快照给我下面的错误
Uncommenting both lines and everything works fine (sign in, leaderboard, achievement) except Save Game. Trying to get a Snapshot gives me the following error
01-11 23:30:14.549 18072-18488/? E/Evader﹕ Must include Drive.SCOPE_APPFOLDER to use snapshots!
java.lang.IllegalStateException: Must include Drive.SCOPE_APPFOLDER to use snapshots!
这是德precated?这是建议在 https://developers.google.com/games/services/android方法/ savedgames
我与LibGDX和BaseGameUtils工作,如果这是相关的
I am working with LibGDX and the BaseGameUtils if that's relevant
推荐答案
这个问题是不是与code任何责任。这是电话(测试装置)。
我测试了另一台设备上,它完美地工作。
我更新了谷歌卸载Play商店和谷歌播放服务的更新,并重新安装的话,和一切工作。
The problem wasn't with the code whatsoever. It was the phone(test device). I tested on another device and it worked flawlessly. I updated uninstalled Google Play Store and Google Play Services updates, and re-installed them, and everything worked.
TLDR - 测试上的多个设备。我不太确定为什么会发生在我的设备我的游戏而已,但执行以上后,一切正常。
TLDR - Test on multiple devices. I'm not exactly sure why that happened on my device for my game only, but after performing the above, everything works.
感谢克莱顿·威尔金森
这篇关于GoogleApiClient和Drive.API错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!