错误:" getGamesClient()没有定义" - 尝试运行谷歌的游戏示例 [英] Error: "getGamesClient() not defined" - trying to run Google's Sample Game
问题描述
我试图运行这里。
我加入谷歌播放服务(最新修订版15)和BaseGameUtils为库项目到我的项目,按指示。我没有错误,除了以下内容:该方法getGamesClient()是不确定的。
I have added Google Play services (latest rev 15) and BaseGameUtils as library projects to my project, as instructed. I have no error except the following: "The method getGamesClient() is undefined ..."
我想我缺少一些库参考?任何帮助是AP preciated。我的设置截图如下。
I think I am missing some library reference? Any help is appreciated. My setup screenshots are below.
推荐答案
它看起来像该8bitartist样本尚未与新的API googleApiClient更新()引用。
It does look like that the 8bitartist sample has not been updated with the new API googleApiClient() references.
我编辑了getGamesClient()'在这里使用code示例:<一href=\"https://github.com/playgameservices/android-samples/commit/c2e6a2d66abaece3404f6a7b0e36e634470aca5d\" rel=\"nofollow\">https://github.com/playgameservices/android-samples/commit/c2e6a2d66abaece3404f6a7b0e36e634470aca5d
I edited the 'getGamesClient()' using the code samples here: https://github.com/playgameservices/android-samples/commit/c2e6a2d66abaece3404f6a7b0e36e634470aca5d
这篇关于错误:&QUOT; getGamesClient()没有定义&QUOT; - 尝试运行谷歌的游戏示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!