Android – Google sign in failed only on (some) Xiaomi devices

I use Google login in my app. I'm using Google play service version 9.0.2

compile 'com.google.android.gms:play-services-plus:9.0.2'

It applies to all devices, but now I get the crash log from crashlytics. The crash only occurs on Xiaomi devices. This is the crash log

    Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.eterno/com.google.android.gms.auth.api.signin.internal.SignInHubActivity}: java.lang.IllegalStateException: Bad magic number for Bundle: 0xffff4f45
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2423)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2483)
       at android.app.ActivityThread.access$900(ActivityThread.java:153)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1349)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:148)
       at android.app.ActivityThread.main(ActivityThread.java:5441)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)
Caused by java.lang.IllegalStateException: Bad magic number for Bundle: 0xffff4f45
       at android.os.Parcel.readException(Parcel.java:1628)
       at android.os.Parcel.readException(Parcel.java:1573)
       at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:2661)
       at android.app.Instrumentation.execStartActivity(Instrumentation.java:1509)
       at android.app.Activity.startActivityForResult(Activity.java:3978)
       at android.app.Activity.startActivityForResult(Activity.java:3939)
       at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:842)
       at com.google.android.gms.auth.api.signin.internal.SignInHubActivity.zza(UnkNown Source)
       at com.google.android.gms.auth.api.signin.internal.SignInHubActivity.onCreate(UnkNown Source)
       at android.app.Activity.performCreate(Activity.java:6303)
       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2376)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2483)
       at android.app.ActivityThread.access$900(ActivityThread.java:153)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1349)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:148)
       at android.app.ActivityThread.main(ActivityThread.java:5441)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)

I can't use any test equipment we can use locally to reproduce the crash. Is there anyone else on Xiaomi facing this problem? In addition, will upgrading the version of Google play service help alleviate this problem?

PS: I didn't attach the code fragment I wrote for Google sign in because it applies to all other devices. This seems to be a specific problem related to Xiaomi devices

resolvent:

View the playservice app version in the device

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>