java - Google Play 游戏无法在 Android 中进行身份验证

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

在 Debug模式下,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.

在 Release模式下,游戏崩溃,我在 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 key 或客户端 ID 执行某些操作吗?

我尚未发布我的设置,但它显示Google Play 游戏服务设置已准备好进行测试。我在进行测试的同一设备上使用我的开发者帐户作为测试帐户。

最佳答案

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

关于java - Google Play 游戏无法在 Android 中进行身份验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35165448/

相关文章:

java - 大于比较和交换

java - 当后台服务执行密集型任务时,如何防止 GUI 延迟?

java - 应用程序在模拟器上运行良好,但在手机上经常崩溃

android - 连接到 Arduino mega ADK 时,Galaxy s3 无法充电

Java 虚拟机停止响应,原因不明

java - Android 工作室 LibGDX

java - div 类包含 onclick 元素如何在 selenium 中处理它

android - 未设置为默认时使用我的应用程序进行 NFC 支付

Android:调整 Horizo​​ntalScrollView 的大小

kotlin - 我们可以使用类作为方法吗