到目前为止我所做的事情:
在开发者控制台(游戏服务)
将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 in with an account that is not listed as
GameHelper: **** a test account.
我如何查看问题所在?
P.S。我在控制台中看到客户端ID,如下所示: 165 *的 ** 6 - *** apps.googleusercontent.com
我应该使用吗?
答案 0 :(得分:2)
看看我们的troubleshooting guide。它涵盖了许多常见的设置问题,根据我们的经验,它解决了80%的问题。此外,前一句包含任意百分比。
答案 1 :(得分:0)
答案 2 :(得分:0)
在console中,您应该在不同的客户端ID中添加不同的SHA1。
最初,我在一个客户端ID中添加了调试和释放SHA1 - 无法正常工作。创建了两个不同的客户端ID - 现在正常工作。