8

我使用BaseGameActivity类连接到Google Play游戏服务游戏服务。问题是,以某种方式验证不起作用。我在网上搜索了几个小时的解决方案,但没有找到任何有助于我解决问题的方法。应用程序配置不正确使用谷歌玩

当我开始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 

我查了十倍以上的包名称,证书SHA1指纹和App ID(这是我出演这里)真的是同样在https://console.developers.google.com/project/my-app-id/apiui/credential

给那些我还删除了给有几十倍的客户端ID并重新创建它们。但没有任何帮助。你可以帮我吗?

+0

您是使用调试密钥(默认值)签署应用程序还是使用生产密钥进行导出? – 323go

+0

我尝试了这两种方法,并在开发人员控制台中为这两个密钥客户端ID创建。 –

回答

1

您在设备上登录的用户必须是有效的测试人员帐户。 检查设备上的登录用户是否配置为有效的测试用户。如果没有,那么当您安装并运行游戏/应用程序到您的设备从Eclipse本身添加与您登录到设备上的谷歌测试仪帐户玩游戏的开发者控制台

+0

我的登录用户是测试人员帐户,我已经发布了该应用程序。所以这不能成为问题的原因。 –

0

的电子邮件,也不会登录并连接到谷歌游戏服务。请按照以下说明,
i。您必须先导出游戏/应用程序(导出前的生成项目) ii。并将app.apk文件上传到设备 iii。安装并运行游戏/应用程序,您将看到谷歌登录窗口。

0

请务必使用正确的SHA1。在我的情况下,我的电脑上有两个不同的debug.keystore文件。

一个是位于C:\User\myUser\.android,另一组位于我android-sdk\.android目录

我使用Eclipse和我的情况下,debug.keystoreandroid-sdk目录中。

如果您使用的是Eclipse,你可以在Window/Preferences/Android/Build/检查debug.keystore的位置。

0

在我的情况下,SHA1指纹不正确。

  1. 转到谷歌Play开发者控制台,并找到你的游戏
  2. 转到左边
  3. 向下滚动到“API控制台项目”的“游戏详细信息”选项卡,并单击“项目名称”
  4. 现在在谷歌开发者控制台(不同的控制台),去API经理
  5. 单击凭据选项卡
  6. 下的OAuth 2.0客户端的ID,点击项目名称
  7. 现在,最后,您可以更改您的SHA1指纹和/或包名称。
相关问题