java - 新更新后整合 Google Play 游戏服务

标签 java android eclipse google-play-services

Important: The Play Games services APIs have been revised to support the simplified Google API client programming model for Google Play services. The previous Games client is deprecated as of February 7th, 2014. Existing and new developers are strongly encouraged to use GoogleApiClient instead of the deprecated GamesClient.

我已正确导入 google-play-services_libBaseGameUtils 并正确链接所有内容,但像这样的导入不再起作用:

import com.google.android.gms.games.Games;    

导入com.google.android.gms.games.Games无法解析

我在将 Google Play 服务与已弃用的 GamesClient 集成时遇到了很大的麻烦。所有用于实现的在线资源尚未针对新模型进行修改。
这是我使用 Google Play 服务的第一款游戏,由于几天的失败,我变得非常沮丧,有人可以澄清一下新的编程模型以及如何实现它吗?

最佳答案

我有最新的 google play 服务库,其中 import com.google.android.gms.games.Games; 可以工作..所以你必须更新你的 google play 服务库

关于java - 新更新后整合 Google Play 游戏服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22214400/

相关文章:

java - 切换到 STS 3.8.3 时出现 ClassNotFoundException

java - 使用 JAVA 将字符串拆分为多个部分并存储为 CSV

java - findViewById 为另一个类上的 WebView

Java eclipse IDE线速调试

java - 方法未按计划进行?

java - 给定一组选项找到最小的三元组

android - API key 放在哪里? list 中的资源、元数据或静态变量?

java - 插页式广告未加载?

java - 在 Eclipse 中将 3 个项目添加到版本控制 (SVN)

java - 在Seam项目中使用模拟服务