14
最新の再生サービスリリース(8.3)にGoogleSignInAccountに関する問題があります。最新のPlayServicesでGoogleSignInAccountにクラッシュする8.3
クラッシュが発生しました。ここではスタックトレースです。
Android: 4.4.4
Manufacturer: Sony
Model: D5503
Date: Thu Nov 12 16:36:06 GMT-08:00 2015
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=40962, result=-1, data=Intent { (has extras) }} to activity {com.spreaker.android/com.google.android.gms.auth.api.signin.internal.SignInHubActivity}: java.lang.NullPointerException
at android.app.ActivityThread.deliverResults(ActivityThread.java:3455)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3498)
at android.app.ActivityThread.access$1300(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:212)
at android.app.ActivityThread.main(ActivityThread.java:5135)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:877)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at java.util.Collections.sort(Collections.java:1882)
at com.google.android.gms.auth.api.signin.GoogleSignInAccount.zzms(Unknown Source)
at com.google.android.gms.auth.api.signin.GoogleSignInAccount.zzmx(Unknown Source)
at com.google.android.gms.auth.api.signin.internal.zzn.zza(Unknown Source)
at com.google.android.gms.auth.api.signin.internal.zzn.zzb(Unknown Source)
at com.google.android.gms.auth.api.signin.internal.SignInHubActivity.zza(Unknown Source)
at com.google.android.gms.auth.api.signin.internal.SignInHubActivity.onActivityResult(Unknown Source)
at android.app.Activity.dispatchActivityResult(Activity.java:5423)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3451)
... 11 more
私たちの側でアプリのログを確認すると、接続に関する問題が発生する可能性がありますが、間違っている可能性があります。
これに関するお手伝いがあります。 おかげ
EDIT:要求に応じて を、これは我々がGoogleApiClient(および必要なオプション)を構築する方法です
GoogleSignInOptions.Builder gsoBuilder = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestScopes(
new Scope("profile"),
new Scope("email"),
new Scope("https://www.googleapis.com/auth/plus.me")
)
.requestProfile()
.requestServerAuthCode(this._config.getGoogleClientId(), true);
this._googleApi = new GoogleApiClient.Builder(getActivity())
.enableAutoManage(getActivity(), new OnConnectionErrorListener())
.addApi(Auth.GOOGLE_SIGN_IN_API, gsoBuilder.build())
.build();
Googleは[8.3でのサインインの改善](http://android-developers.blogspot.com/2015/11/improvements-to-sign-in-with-google.html)を作成しました。いくつかの更新/変更。 – Andy
はい、私たちはそれを適切に行うためにすべてを変更しました。ここでは特別なことはしません。新しいAPIによって返されたGoogleアカウントを待つだけですが、アカウントを提供する代わりにクラッシュします。私の考える新しいAPIの中にはバグがあります。 – DrAL3X
私は8.3で同じクラッシュを見ましたが、解決策はまだありません。 – AndroidEx