为什么退出 Leaderboard 会导致应用程序崩溃?

Why does sign-out from Leaderboard result in an application crash?

当我通过访问设置从排行榜中注销并尝试重新登录时,应用程序崩溃了。看来 GameHelper 没有登记这次登出。

如何解决这个问题?

我相信这是在 github repo 上提出的类似问题。它在那里表明它按预期工作。

When you start a GPGS activity, you have to start it with startActivityForResult. If the user clicks on sign-out, the GoogleApiClient is NOT disconnected - it's just in a "signed out" state. The onActivityResult here will return a status RECONNECT_REQUIRED. At this point, the developer should reconnect their client, and life goes on as expected.

尝试修改 RECONNECT_REQUIRED 条件块以断开连接,或创建一种方法来处理特定于您的用例(登录页面?)。