Error: “getGamesClient() not defined” - trying to run Google's Sample Game

大憨熊 提交于 2020-01-24 16:24:06

问题


I am trying to run the Google Game Play Services example from here.

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 ..."

I think I am missing some library reference? Any help is appreciated. My setup screenshots are below.


回答1:


It does look like that the 8bitartist sample has not been updated with the new API googleApiClient() references.

I edited the 'getGamesClient()' using the code samples here: https://github.com/playgameservices/android-samples/commit/c2e6a2d66abaece3404f6a7b0e36e634470aca5d



来源:https://stackoverflow.com/questions/22239750/error-getgamesclient-not-defined-trying-to-run-googles-sample-game

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!