java.lang.IllegalStateException: GoogleApiClient is not connected yet.

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.

Root Cause Analysis

  1. java.lang.IllegalStateException

    GoogleApiClient is not connected yet.

    at com.google.android.gms.common.api.zze.zzb()
  2. com.google.android
    zze.removeGeofences
    1. com.google.android.gms.common.api.zze.zzb(Unknown Source)
    2. com.google.android.gms.common.api.zzg.zzb(Unknown Source)
    3. com.google.android.gms.location.internal.zze.removeGeofences(Unknown Source)
    3 frames
  3. com.lib.mm
    GeofencingGeofenceManager$6.onConnected
    1. com.lib.mm.android.library.location.impl.GeofencingGeofenceManager$6.onConnected(GeofencingGeofenceManager.java:245)
    1 frame
  4. com.google.android
    zzi$zzb.handleMessage
    1. com.google.android.gms.common.internal.zzj.zzg(Unknown Source)
    2. com.google.android.gms.common.api.zze.zzmH(Unknown Source)
    3. com.google.android.gms.common.api.zze.onConnected(Unknown Source)
    4. com.google.android.gms.common.api.zzg$2.onConnected(Unknown Source)
    5. com.google.android.gms.common.internal.zzi$zzg.zznO(Unknown Source)
    6. com.google.android.gms.common.internal.zzi$zza.zzc(Unknown Source)
    7. com.google.android.gms.common.internal.zzi$zza.zzr(Unknown Source)
    8. com.google.android.gms.common.internal.zzi$zzc.zznQ(Unknown Source)
    9. com.google.android.gms.common.internal.zzi$zzb.handleMessage(Unknown Source)
    9 frames
  5. Android Platform
    ActivityThread.main
    1. android.os.Handler.dispatchMessage(Handler.java:102)
    2. android.os.Looper.loop(Looper.java:145)
    3. android.app.ActivityThread.main(ActivityThread.java:5951)
    3 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Method.java)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  7. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
    2 frames