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

时间:2013-12-06 09:28:01

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

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

  1. 在开发者控制台(游戏服务)

  2. 中添加并链接了我的应用
  3. 将App_id包含到我的app / manifest

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

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

  6. 扩展BaseGameActivity

  7. 日志中的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.
    
    1. 我从控制台拿了App_id,它100%正确。
    2. 我尝试使用测试帐户登录
    3. SHA1和包名称100%正确。
    4. 我如何查看问题所在?

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

      我应该使用吗?

3 个答案:

答案 0 :(得分:2)

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

答案 1 :(得分:0)

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

Link

Better link, see Note text

答案 2 :(得分:0)

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

最初,我在一个客户端ID中添加了调试和释放SHA1 - 无法正常工作。创建了两个不同的客户端ID - 现在正常工作。