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_lib
、BaseGameUtils
并正确链接所有内容,但像这样的导入不再起作用:
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/