Google Play 游戏服务无法登录 - returns 已取消

Google Play Games Services not able to login - returns Canceled

我正在使用 Corona SDK 并尝试将 Google 服务添加到我的游戏并按照教程 here 进行操作,但登录失败。我尝试使用 Android Studio 和 logcat 进行调试,并注意到 gpgsInitListener 在登录开始后立即抛出以下内容:

event.isError: {
      isError = true,
      name = "login",
      phase = "canceled"
    }

有趣的是,我从来没有机会选择使用哪个帐户(我认为其他应用程序会显示正在使用哪个电子邮件并要求继续)。在我访问包含代码的场景后,我看到一个 "Google Play Games" 弹出窗口,然后是一个旋转轮,然后是黑屏。

除了 packageName、appID 和 leaderboardID 之外,我的代码与教程中的代码完全相同。我已经使用 Corona 签署了该应用程序,然后将 APK 上传到 Google 控制台(因此 SHA1 指纹应该是正确的)。我的应用和游戏以内测状态发布,我已将我的电子邮件添加到测试人员列表中。

在 logcat 我看到以下消息:

2019-09-05 21:01:13.404 6603-10712/? W/GamesServiceBroker: Client connected with SDK 18360000, Services 19056039, and Games 110770048
2019-09-05 21:01:13.560 15677-15677/? W/SignInActivity: onSignInFailed()...
2019-09-05 21:01:13.560 15677-15677/? W/SignInActivity: Sign in failed during 6
2019-09-05 21:01:13.560 15677-15677/? W/SignInActivity: ==> Returning non-OK result: 10002
2019-09-05 21:01:13.589 6603-10712/? W/GamesServiceBroker: Client connected with SDK 18360000, Services 19056039, and Games 110770048

并查看文档:

The attempt to sign in to the Games service failed. For example, this might happen if the network is flaky, or the user's account has been disabled, or consent could not be obtained.

完整日志可用 here

您是否在使用 Corona 的默认调试密钥库?

此错误的发生通常是因为您使用的密钥库与您在 Google Play 的开发者控制台中与您的应用相关联的密钥库不同。为了在您的应用中使用 Google Play 游戏服务,或者甚至测试它们,您 必须 使用您为该特定游戏创建的密钥库构建您的应用。

您可以在此处找到更多信息:https://developers.google.com/games/services/console/enabling

我在我的 Google Play 控制台中创建了一个新应用,并使用新密钥重建了我的应用,现在它可以运行了。

不确定哪里出了问题,因为我按照与教程相同的步骤操作,这次可能顺序不完全相同...