应用未正确配置为使用Google Play游戏服务

pri*_*ain 11 java android google-api google-play-services google-play-games

我正在使用该BaseGameActivity课程连接谷歌玩游戏服务.问题是以某种方式认证不起作用.我在网上搜索了几个小时的解决方案,但没有找到任何有助于我解决问题的方法.

当我启动BaseGameActivity时,我在LogCat中获得以下输出:

03-19 14:22:36.126: W/GameHelper(15312): ****
03-19 14:22:36.126: W/GameHelper(15312): ****
03-19 14:22:36.126: W/GameHelper(15312): **** APP NOT CORRECTLY CONFIGURED TO USE GOOGLE PLAY GAME SERVICES
03-19 14:22:36.126: W/GameHelper(15312): **** This is usually caused by one of these reasons:
03-19 14:22:36.126: W/GameHelper(15312): **** (1) Your package name and certificate fingerprint do not match
03-19 14:22:36.126: W/GameHelper(15312): ****     the client ID you registered in Developer Console.
03-19 14:22:36.126: W/GameHelper(15312): **** (2) Your App ID was incorrectly entered.
03-19 14:22:36.126: W/GameHelper(15312): **** (3) Your game settings have not been published and you are 
03-19 14:22:36.126: W/GameHelper(15312): ****     trying to log in with an account that is not listed as
03-19 14:22:36.126: W/GameHelper(15312): ****     a test account.
03-19 14:22:36.126: W/GameHelper(15312): ****
03-19 14:22:36.126: W/GameHelper(15312): **** To help you debug, here is the information about this app
03-19 14:22:36.126: W/GameHelper(15312): **** Package name         : *****
03-19 14:22:36.126: W/GameHelper(15312): **** Cert SHA1 fingerprint: *****
03-19 14:22:36.126: W/GameHelper(15312): **** App ID from          : *****
03-19 14:22:36.126: W/GameHelper(15312): ****
03-19 14:22:36.126: W/GameHelper(15312): **** Check that the above information matches your setup in 
03-19 14:22:36.126: W/GameHelper(15312): **** Developer Console. Also, check that you're logging in with the
03-19 14:22:36.126: W/GameHelper(15312): **** right account (it should be listed in the Testers section if
03-19 14:22:36.126: W/GameHelper(15312): **** your project is not yet published).
03-19 14:22:36.126: W/GameHelper(15312): ****
03-19 14:22:36.126: W/GameHelper(15312): **** For more information, refer to the troubleshooting guide:
03-19 14:22:36.126: W/GameHelper(15312): ****   http://developers.google.com/games/services/android/troubleshooting
Run Code Online (Sandbox Code Playgroud)

我检查了十多次,包名称,证书SHA1指纹和应用程序ID(我在这里主演)与https://console.developers.google.com/project/my-app-id/中给出的相同apiui /凭证

我还删除了多次给出的客户端ID并重新创建它们.但没有任何帮助.你能帮助我吗?

Mic*_*ael 5

就我而言,SHA1指纹不正确。

  1. 转到Google Play开发者控制台,然后找到您的游戏
  2. 转到左侧的“游戏详细信息”标签
  3. 向下滚动到“ API控制台项目”,然后单击“项目名称”
  4. 现在,在Google Developer Console(其他控制台)中,转到API Manager
  5. 单击凭据选项卡
  6. 在OAuth 2.0客户端ID下,单击您的项目名称
  7. 现在,最后,您可以更改SHA1指纹和/或需要的包装名称。


Reg*_*Mem 3

您在设备上登录的用户必须是有效的测试人员帐户。检查设备上登录的用户是否配置为有效的测试用户。如果没有,则将您登录设备时使用的电子邮件添加到 Google Play 游戏开发者控制台上的测试人员帐户