java.lang.NullPointerException at GoogleApiActivity

前端 未结 3 894
感动是毒
感动是毒 2021-02-08 11:48

I\'m using Crashlytics for my android app, and I have many crashes at ActivityThread.java: android.app.ActivityThread.deliverResults

I put some stack traces here:

<
相关标签:
3条回答
  • 2021-02-08 12:08

    The problem is definitely in the new Google Services (9.0.0 to 9.4.0). It tries to start something that returns null to the onActivityResult.

    Probably the only way to fix this:

    PackageManager pm = getPackageManager();
    pm.setComponentEnabledSetting(new ComponentName(this, GoogleApiActivity.class), PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);
    
    0 讨论(0)
  • 2021-02-08 12:22

    Upgrading the SDK to the latest version 9.4 of the Google Play Service should fix this issue.

    0 讨论(0)
  • 2021-02-08 12:34

    This is a bug in the Google Play Services SDK, up to 9.4.0. The fix should be in the next release, sorry about that.

    0 讨论(0)
提交回复
热议问题