0
I 앱을 통해 Gmail에 로그인에 thise 코드를 사용하여 큰 문제가 완벽하게 실행 thise 코드를 추락했다. 오류 .. 계정과 좋아 모든 것에
로그인하지만 thise 코드를 오픈 리더 보드를하려고 할 때 ...
Games.Leaderboards.submitScore(mGoogleApiClient, "XXXXX02386600-n1nl2jfkpgsuhi1bogkqhmitsadi4icl.apps.googleusercontent.com", 1337);
startActivityForResult(Games.Leaderboards.getLeaderboardIntent(mGoogleApiClient,
"XXXXXX02386600-n1nl2jfkpgsuhi1bogkqhmitsadi4icl.apps.googleusercontent.com"), 101);
및 쓰기
java.lang.IllegalStateException: GoogleApiClient is not configured to use the Games Api. Pass Games.API into GoogleApiClient.Biulder#addApi() tp use this feature
넣어 .addApi 만약
(Games.API)GoogleApiClient.Builder(this)
.enableAutoManage(this /* FragmentActivity */, this /* OnConnectionFailedListener */)
.addApi(Auth.GOOGLE_SIGN_IN_API, gso)
.addApi(Games.API)
.build();
응용 프로그램이 다운되었습니다.
나는 thise 내가 생각이없는import com.google.android.gms.games.Games;
import com.google.android.gms.auth.api.Auth;
import com.google.android.gms.auth.api.signin.GoogleSignInAccount;
import com.google.android.gms.auth.api.signin.GoogleSignInOptions;
import com.google.android.gms.auth.api.signin.GoogleSignInResult;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.SignInButton;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.OptionalPendingResult;
import com.google.android.gms.common.api.ResultCallback;
import com.google.android.gms.common.api.Status;
수입이 어디에 문제가, 어쩌면 잘못된 ID입니까? 나는 좋은 신분증을 어디서 발견합니까?
아이디어가 있거나 좋은 코드가 있으면 여기에 넣어주세요.
감사합니다.