在 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/