【问题标题】:Google play game services integration after new update新更新后谷歌玩游戏服务集成
【发布时间】:2014-03-06 03:41:21
【问题描述】:

重要提示:Play Games 服务 API 已经过修订,以支持适用于 Google 的简化 Google API 客户端编程模型 播放服务。之前的 Games 客户端自 2 月起已弃用 2014 年 7 月 7 日。强烈鼓励现有和新的开发人员使用 GoogleApiClient 而不是已弃用的 GamesClient。

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

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

The import com.google.android.gms.games.Games can not be resolved

我在将 Google Play 服务与不推荐使用的 GamesClient 集成时遇到了问题。所有用于实施的在线资源均未修改为新模型。
这是我第一次使用 Google Play 服务的游戏,由于几天的失败,我变得非常沮丧,有人可以对新的编程模型以及如何实现它进行一些说明吗?

【问题讨论】:

  • official site 上的每个教程都已更新为新模型,所以我不确定您所说的“所有用于实施的在线资源都没有重新修改为新模型”是什么意思?
  • 我不认为 Google 的所有在线示例都已更新 - 例如:stackoverflow.com/questions/22239750/…
  • @ianhanniballake 确实有一些没有更新
  • @ılǝ - 你能指出哪些还有待更新吗? user1406716 的示例在一个月前更新(与其他示例一起)。
  • @ianhanniballake 我认为“ButtonClicker”、“SkeletonTemp”和“EndlessTunnel”。其中仍有 GamesClient 的导入 - bit.ly/1j2I0y8

标签: java android eclipse google-play-services


【解决方案1】:

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

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2016-07-08
  • 2018-10-05
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-08-04
  • 1970-01-01
相关资源
最近更新 更多