简体   繁体   English

新更新后的Google Play游戏服务集成

[英]Google play game services integration after new update

Important : The Play Games services APIs have been revised to support the simplified Google API client programming model for Google Play services. 重要提示 :Play游戏服务API已进行了修改,以支持简化的Google Play服务的Google API客户端编程模型。 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. 自2014年2月7日起,不再推荐使用旧版Games客户端。强烈建议现有和新开发人员使用GoogleApiClient而不是已弃用的GamesClient。

I have properly imported google-play-services_lib , BaseGameUtils and linked everything properly, but imports like this, no longer work: 我已经正确导入了google-play-services_libBaseGameUtils并正确链接了所有内容,但是这样的导入不再起作用:

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

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

I am having real trouble integrating Google Play Services with GamesClient deprecated. 我在将Google Play服务与GamesClient弃用时遇到了真正的麻烦。 All the online resources for implementation haven't been revised to the new model. 尚未将所有用于实施的在线资源修订为新模型。
This is my first game with Google play services and i have become extremely frustrated as a result from days of failure, can someone shine a little clarity on the new programming model and how to implement it? 这是我使用Google Play服务的第一款游戏,而由于几天来的失败,我感到非常沮丧,有人能对新的编程模型及其实现方法有所了解吗?

I have the latest google Play Service Library and in it import com.google.android.gms.games.Games; 我拥有最新的Google Play服务库,并在其中import com.google.android.gms.games.Games; works..so you have to update your google play service library 作品..所以您必须更新您的Google Play服务库

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM