Google Play游戏未在Android中进行身份验证

时间:2016-02-02 23:00:41

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

在调试模式下,Google Play游戏会显示正在加载的屏幕,我甚至可以登录。但是,之后我在一个干净的消息框中收到此错误:

The application is incorrectly configured. Check that the package name and signing certificate match the client ID created in Developer Console. Also, if the application is not yet published, check that the account you are trying to sign in with is listed as a tester account. See logs for more information.

在发布模式下,游戏崩溃,我在Android Studio中收到此错误:

Access Not Configured. The API (Google Play Game Services API) is not enabled for your project. Please use the Google Developers Console to update your configuration.

在Google Play开发者控制台中,勾选了所有标记。我不明白为什么它不起作用。我应该使用SHA密钥或客户端ID做什么吗?

我还没有发布我的设置,但它说The Google Play game services settings are ready to test.我在我测试的设备上使用我的开发者帐户作为测试帐户。

1 个答案:

答案 0 :(得分:0)

我使用的是错误的SHA1键。我必须在此页面上创建一个新的GPGS游戏并执行步骤3C:https://developers.google.com/games/services/console/enabling