在昨天的Google I/O主题演讲之后,我更新了我的Android SDK,将游戏服务集成到我的一个应用程序中.
到目前为止我做的事情:
BaseGameActivity和GameHelper我的项目(从GitHub)BaseGameActivity,补充一个com.google.android.gms.common.SignInButton我还设置了游戏元数据,当然还有一些成就.开发控制台声明它已准备好发布.为了测试登录流程和成就,我添加了两个Google+帐户作为测试用户.
但是当我测试SignInButton时,会弹出一个警告:未知错误.这是logcat:
ERROR/Volley: il.a: Unexpected response code 403 for https://www.googleapis.com/games/v1/players/me
ERROR/SignInIntentService: Access Not Configured
ERROR/LoadSelfFragment: Unable to sign in - application does not have a registered client ID
Run Code Online (Sandbox Code Playgroud)
我已经在生产模式下构建了我的应用程序 - 使用ProGuard和正确的证书.
我错过了什么?
这里是我在此期间尝试过的简短概述.什么都没有帮助.
该问题与测试部分的帐户无关.使用未启用测试的帐户将导致另一条错误消息:
E/GameAgent: Unable to retrieve 1P application 547xxxxxx457 from network
E/CheckGameplayAcl: Unable to load metadata …Run Code Online (Sandbox Code Playgroud) 我对这个变得疯狂.我刚在Google Play商店发布了一款游戏,该游戏使用的是Google Play游戏服务.
登录和排行榜/成就因使用调试密钥签名的应用程序而受到罚款,但由于我使用发布密钥构建并发布了我的应用程序,因此无法使用Google+登录.我总是得到臭名昭着的错误 "E/SignInIntentService(25004):没有与此客户端ID关联的链接应用程序."
我对所有内容进行了双重和三重检查:我的应用程序已发布,程序包名称和SHA1指纹正确并且与我从发布APK中提取的内容相匹配,我取消链接并多次重新链接Google Play控制台中的应用程序,但无效.
想法,有人吗?
谢谢
到目前为止我做的事情:
在Dev Console(游戏服务)中添加并链接了我的应用程序
将App_id包含到我的app/manifest中
将BaseGameActivity和GameHelper添加到我的项目中(来自GitHub)
将google-play-services库添加到我的项目中
扩展BaseGameActivity
日志中的ee是什么:
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 …Run Code Online (Sandbox Code Playgroud)