Skip to content Skip to sidebar Skip to footer

Java.lang.nullpointerexception At Googleapiactivity

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: Fatal Exception: j

Solution 1:

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

Solution 2:

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(newComponentName(this, GoogleApiActivity.class), PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);

Solution 3:

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.

Post a Comment for "Java.lang.nullpointerexception At Googleapiactivity"