登录失败。Google 玩游戏 Libgdx

Failed to sign in. Google Play Games Libgdx

我想更新我已经在 Play 商店中发布的应用程序以添加成就和排行榜。

我已经在 Developer Console 中创建了游戏,一切正常,一切都与我在 Google API 中为我的应用程序输入的调试 SHA1 一起工作。

但现在我已经生成了一个带有不同 SHA1 的签名 APK(当然),并且我已经将 Google API 中的调试 SHA1 更改为我签名 APK 的 SHA1。

我已将 APK 推送到 Playstore 并从 Developer Console 发布了游戏。但现在我的游戏在商店中可用,当人们尝试连接到 Google Play 游戏时,他们会得到 "Failed to Sign in. Please check you network connection and try again".

我已经看过了 this link 但我做的一切都正确。

我是否需要等待几个小时才能 Google API 处理我输入的新 SHA1?我不知道发生了什么

你可以参考这个thread。尝试将值文件夹中的 app IDleaderboard IDstrings.xml 移动到 ids.xml。您也可以尝试删除所有客户端 ID,然后再次添加它们以用于调试密钥库和发布密钥库。

这是一个可能也有帮助的附加参考:

Here are a few points that might help you.

  • It takes several hours before your changes on Developer Console are actually published. Test the game after a few hours.

  • You don't need to publish in order to test it. You can do that by adding tester accounts in your developer console.

  • You can't "test" Google Play Services with developer account. You will need another account for that.

Edit: Very Important:

Make sure you added required permissions to AndroidManifest.xml in your Android project.

好的,对于和我有同样问题的每个人来说。

不要忘记现在 Google 可以为您的应用签名。

我需要的SHA1指纹在开发者控制台中,不需要获取我的APK的SHA1指纹。