java.lang.NullPointerException at GoogleApiActivity

前端 未结 3 895
感动是毒
感动是毒 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);
    

提交回复
热议问题