我在GamesClient
为新的 Google Play 服务创建时遇到问题。我已经尝试过海报和在这里给出答案的人都没有成功。我已经关注了有关设置 Play 服务(更具体地说是排行榜)的所有文档,但我觉得他们的任何文档中都没有关于在何处以及如何设置GamesClient
. 也许我错了,如果我错了,请给我链接。
现在我的代码中有以下代码,onCreate()
但有错误。
GamesClient mGamesClient;
mGamesClient = new GamesClient(null, null, null, null, null, null, 0, null);
mGamesClient.connect();
//Error: "The constructor GamesClient(Context, String, String, GooglePlayServicesClient.ConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener, String[], int, View) is not visible.
我也试过这段代码没有成功:
GamesClient client = GamesClient.Builder(this, this, this).create();
//Error: "The method Builder(MainMenu, MainMenu, MainMenu) is undefined for the type GamesClient."
有人可以为我提供如何实例化它的帮助GamesClient
吗?