问题描述
事情我已经迄今所做的:
-
补充,并在开发控制台链接我的应用程序(游戏服务)
-
包括APP_ID到我的应用程序/清单
-
添加BaseGameActivity和GameHelper到我的项目(从GitHub)
-
添加了谷歌播放服务库,我的项目
-
扩展BaseGameActivity
什么是日志EE:
GameHelper:**** APP未正确配置为使用Google Play游戏服务
GameHelper:****这通常是由以下原因之一:
GameHelper:****(1)您的包名称和证书指纹不匹配
GameHelper:****你在开发者控制台中注册的客户端ID。
GameHelper:****(2)错误地输入你的App ID。
GameHelper:****(3)您的游戏设置尚未公布,你是
GameHelper:****试图与未列为帐号登录
GameHelper:****测试帐户。
- 我把APP_ID从控制台,它是100%正确的。
- 我试图与测试帐户登录
- SHA1和软件包名称100%正确。
我如何检查问题出在哪里?
P.S。我看到控制台客户端ID,看起来像:
165 * ** 6 - 的*** apps.googleusercontent.com
我应该使用它?
在控制台你应该在不同的客户端ID添加不同的SHA1。
起初,我加了调试,并在一个客户端ID发布SHA1s - 不工作。创造了两个不同的客户端ID - 现在的工作
Things I've done so far:
added and linked my app in the Dev Console (game services)
included the App_id into my app/manifest
added BaseGameActivity and GameHelper to my project (from GitHub)
added the google-play-services library to my project
extended BaseGameActivity
What is ee in log:
GameHelper: **** APP NOT CORRECTLY CONFIGURED TO USE GOOGLE PLAY GAME SERVICES
GameHelper: **** This is usually caused by one of these reasons:
GameHelper: **** (1) Your package name and certificate fingerprint do not match
GameHelper: **** the client ID you registered in Developer Console.
GameHelper: **** (2) Your App ID was incorrectly entered.
GameHelper: **** (3) Your game settings have not been published and you are
GameHelper: **** trying to log in with an account that is not listed as
GameHelper: **** a test account.
- I took App_id from console, it's 100% correct.
- I'm trying to log in with an test account
- SHA1 and package name 100% correct.
How can i check where is the problem?
p.s. i see Client ID in console, looking like:165***6-***.apps.googleusercontent.com
Should i use it?
In console you should add different SHA1 in different Client ID.
Initially, I added debug and release SHA1s in one Client ID - not working. Created two different Client ID - now work.
这篇关于谷歌Play游戏服务 - 无法登录到游戏中心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!