GamesClient
新しい Google Play Services の を作成できません。ポスターとここで答えを出した人の両方を試しましたが、成功しませんでした。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
?