Google Play游戏登录失败。 (Google Play服务)

时间:2019-02-11 18:10:16

标签: android google-play-services google-play-games

该应用程序已加载到开发人员控制台中。该应用程序在内部测试中发布。带有测试人员的组被激活。已发布设置,已发布服务。

Game Maker Studio 2中的SHA1密钥已在加载应用程序时复制到控制台。

在检查授权的游戏中,玩家的姓名显示在屏幕上(PlayerName = async_load [?“ Name”];默认值为“ Anon”)。启动游戏时,将显示Google Play游戏的初始屏幕。我选择我的帐户。正在加载(旋转圆)。加载后,播放器的名称将更改为“未登录”。

我的日志文件:https://pastebin.com/c87680ua

摘录自日志:

3221 8167 E SignInAuthenticator: **** APP NOT CORRECTLY CONFIGURED TO USE GOOGLE PLAY GAME SERVICES
3221 8167 E SignInAuthenticator: **** This is usually caused by one of these reasons:
3221 8167 E SignInAuthenticator: **** (1) Your package name and certificate fingerprint do not match
3221 8167 E SignInAuthenticator: **** the client ID you registered in Developer Console.
3221 8167 E SignInAuthenticator: **** (2) Your App ID was incorrectly entered.
3221 8167 E SignInAuthenticator: **** (3) Your game settings have not been published and you are 
3221 8167 E SignInAuthenticator: **** trying to log in with an account that is not listed as
3221 8167 E SignInAuthenticator: **** a test account.
3221 8167 E SignInAuthenticator: ****
3221 8167 E SignInAuthenticator: **** To help you debug, here is the information about this app
3221 8167 E SignInAuthenticator: **** Package name : com.***.***
3221 8167 E SignInAuthenticator: **** Cert SHA1 fingerprint: 4F********D0
3221 8167 E SignInAuthenticator: **** App ID from manifest : 51*******38
3221 8167 E SignInAuthenticator: ****
3221 8167 E SignInAuthenticator: **** Check that the above information matches your setup in 
3221 8167 E SignInAuthenticator: **** Developer Console. Also, check that you're logging in with the
3221 8167 E SignInAuthenticator: **** right account (it should be listed in the Testers section if
3221 8167 E SignInAuthenticator: **** your project is not yet published).
3221 8167 E SignInAuthenticator: ****
3221 8167 E SignInAuthenticator: **** For more information, refer to the troubleshooting guide:

开始时以为问题是SHA1。后来放弃了这个主意。应用ID是正确的。

P.S。应用内购买成功运行

更新:

再次检查密钥。已替换(根据本指南-http://forum.hellroom.ru/index.php?topic=25526.msg315187)。总体情况没有改变,但是日志已经改变!上面问题中给出的“错误”已经消失。真正了解情况并没有变得容易。你能帮我吗?这是一条日志:https://pastebin.com/CX9xG9nW

我发现的唯一一件事:

02-13 19:36:45.722 13302 13302 I yoyo    : Login failed! Exception:  com.google.android.gms.common.api.ApiException: 8: 

使用非静默登录名登录:https://pastebin.com/f81qFwKM

1 个答案:

答案 0 :(得分:0)

您的第一条日志中提到了配置错误。

APP NOT CORRECTLY CONFIGURED TO USE GOOGLE PLAY GAME SERVICES

如果您使用Google App签名,则必须使用App Sign Certificato中的SHA1,而不要使用Upload Certificate中的SHA1。

Google sign in failed com.google.android.gms.common.api.ApiException: 10:

这篇文章也许会对您有所帮助