java.lang.RuntimeException: Unable to start activity ComponentInfo{xxx.xxxxx.xxxxx/com.firebase.ui.auth.ui.ChooseAccountActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int com.google.android.gms.common.GoogleApiAvailability.isGooglePlayServicesAvailable(android.content.Context)' on a null object reference

GitHub | peterhav | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    NPE using 0.5.0 release

    GitHub | 6 months ago | peterhav
    java.lang.RuntimeException: Unable to start activity ComponentInfo{xxx.xxxxx.xxxxx/com.firebase.ui.auth.ui.ChooseAccountActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int com.google.android.gms.common.GoogleApiAvailability.isGooglePlayServicesAvailable(android.content.Context)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'int com.google.android.gms.common.GoogleApiAvailability.isGooglePlayServicesAvailable(android.content.Context)' on a null object reference

      at com.firebase.ui.auth.util.PlayServicesHelper.isPlayServicesAvailable()
    2. com.firebase.ui
      ChooseAccountActivity.onCreate
      1. com.firebase.ui.auth.util.PlayServicesHelper.isPlayServicesAvailable(PlayServicesHelper.java:40)
      2. com.firebase.ui.auth.util.PlayServicesHelper.makePlayServicesAvailable(PlayServicesHelper.java:78)
      3. com.firebase.ui.auth.ui.ChooseAccountActivity.onCreate(ChooseAccountActivity.java:75)
      3 frames
    3. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Activity.performCreate(Activity.java:5937)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)
      3 frames