我正在尝试运行 here 中的 Google Game Play 服务示例.
我已按照说明将 Google Play 服务(最新版本 15)和 BaseGameUtils 作为库项目添加到我的项目中。除了以下内容之外,我没有任何错误:“方法 getGamesClient() 未定义...”
我想我缺少一些图书馆引用资料?任何帮助表示赞赏。我的设置屏幕截图如下。
最佳答案
看起来 8bitartist 示例尚未使用新的 API googleApiClient() 引用进行更新。
我使用此处的代码示例编辑了“getGamesClient()”:https://github.com/playgameservices/android-samples/commit/c2e6a2d66abaece3404f6a7b0e36e634470aca5d
关于android - 错误: "getGamesClient() not defined" - trying to run Google's Sample Game,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22239750/