android - Google Play 游戏登录失败。(谷歌播放服务)
问题描述
应用程序被加载到开发者控制台中。该应用程序在内部测试中发布。测试人员组已激活。设置发布,服务发布。
加载应用程序时,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 正确。
PS 应用内购买功能正常
更新:
再次检查钥匙。已替换(根据本指南 - 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
解决方案
您的第一个日志提到了配置错误。
APP NOT CORRECTLY CONFIGURED TO USE GOOGLE PLAY GAME SERVICES
如果您使用 Google App Signing,则必须使用 App Sign Certificato 中的 SHA1,而不是上传证书中的 SHA1。
谷歌登录失败 com.google.android.gms.common.api.ApiException: 10:
这篇文章也许会对你有所帮助
推荐阅读
- xslt - disable-output-escaping="yes" in XSLT 1.0 is not working for
- java - Deltaspike 存储库事务提交,但 Java SE 中的 DB 中没有任何内容
- delphi - MouseDown 上的光标不改变
- c++ - *array[] 和 array[] 有什么区别?
- javascript - 在上传图像时以黑白绘制图像(在画布中)
- javascript - Javascript 对象道具
- sql - 你如何通过查询创建一个子组?
- hex - 接收二进制彩信
- java - 使用 Java lambda 在 aws s3 上读取文件
- azure - AKS Kubernetes 与 Azure DevOps Pipeline - helm 升级错误