Google Play 游戏服务 - 无法登录游戏中心

Posted

技术标签:

【中文标题】Google Play 游戏服务 - 无法登录游戏中心【英文标题】:Google Play Game Services - unable to sign in to Game Center 【发布时间】:2013-12-23 14:14:41 【问题描述】:

到目前为止我做过的事情:

    在开发控制台中添加并链接了我的应用(游戏服务)

    将 App_id 包含到我的应用/清单中

    将 BaseGameActivity 和 GameHelper 添加到我的项目中(来自 GitHub)

    将 google-play-services 库添加到我的项目中

    扩展 BaseGameActivity

日志中的ee是什么:

GameHelper: **** APP NOT CORRECTLY CONFIGURED TO USE GOOGLE PLAY GAME SERVICES
 GameHelper: **** This is usually caused by one of these reasons:
 GameHelper: **** (1) Your package name and certificate fingerprint do not match
 GameHelper: ****     the client ID you registered in Developer Console.
 GameHelper: **** (2) Your App ID was incorrectly entered.
 GameHelper: **** (3) Your game settings have not been published and you are 
 GameHelper: ****     trying to log in with an account that is not listed as
 GameHelper: ****     a test account.
    我从控制台获取了 App_id,它是 100% 正确的。 我正在尝试使用测试帐户登录 SHA1 和包名称 100% 正确。

如何检查问题出在哪里?

附言我在控制台中看到客户端 ID,如下所示: 165***6-***.apps.googleusercontent.com

我应该使用它吗?

【问题讨论】:

【参考方案1】:

看看我们的troubleshooting guide。它涵盖了许多常见的设置问题,根据我们的经验,它解决了 80% 的问题。另外,上一句包含任意百分比。

【讨论】:

我会接受这个答案,因为这是为游戏服务编写整个代码的人的答案:)【参考方案2】:

您只想在客户端 ID 中使用数字“165*6-*”。不要添加“.apps.googleusercontent.com”部分。

Link

Better link, see Note text

【讨论】:

【参考方案3】:

在console 中,您应该在不同的客户端 ID 中添加不同的 SHA1。

最初,我在一个客户端 ID 中添加了调试和发布 SHA1 - 不起作用。创建了两个不同的客户端 ID - 现在可以工作了。

【讨论】:

以上是关于Google Play 游戏服务 - 无法登录游戏中心的主要内容,如果未能解决你的问题,请参考以下文章

Google Play 游戏服务 - 无法登录

无法登录 google play 游戏服务 API

删除 google play 游戏数据后卡住无法登录

Google Play 游戏服务登录失败

Google Play 游戏服务错误:无法登录 - 应用程序没有注册的客户端 ID?其他修复无效

无法使用 Google Play 游戏服务创建房间