java.lang.RuntimeException: Unable to start activity ComponentInfo{ir.homa/ir.homa.HomaActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.common.api.GoogleApiClient.connect()' on a null object reference

Stack Overflow | Mohammadreza | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    My application doesn't run itself MainActivity

    Stack Overflow | 8 months ago | Mohammadreza
    java.lang.RuntimeException: Unable to start activity ComponentInfo{ir.homa/ir.homa.HomaActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.common.api.GoogleApiClient.connect()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'void com.google.android.gms.common.api.GoogleApiClient.connect()' on a null object reference

      at ir.homa.HomaActivity.onStart()
    2. ir.homa
      HomaActivity.onStart
      1. ir.homa.HomaActivity.onStart(HomaActivity.java:127)
      1 frame
    3. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1234)
      2. android.app.Activity.performStart(Activity.java:6258)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2621)
      3 frames