onaio / kujaku

Mapping and check-in library for Android using MapBox SDK
https://ona.io
BSD 2-Clause "Simplified" License
18 stars 13 forks source link

Crashed caused by GoogleApiClient #197

Closed ekigamba closed 5 years ago

ekigamba commented 5 years ago

This was collected from Crashlytics

11-15 11:40:30.247 11763-11763/io.ona.kujaku.sample E/AndroidRuntime: FATAL EXCEPTION: main
    Process: io.ona.kujaku.sample, PID: 11763
    java.lang.RuntimeException: Unable to pause activity {io.ona.kujaku.sample/io.ona.kujaku.activities.MapActivity}: java.lang.IllegalStateException: GoogleApiClient is not connected yet.
        at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:4176)
        at android.app.ActivityThread.performPauseActivity(ActivityThread.java:4142)
        at android.app.ActivityThread.performPauseActivity(ActivityThread.java:4116)
        at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:4090)
        at android.app.ActivityThread.-wrap18(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1651)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:154)
        at android.app.ActivityThread.main(ActivityThread.java:6780)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1496)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1386)
     Caused by: java.lang.IllegalStateException: GoogleApiClient is not connected yet.
        at com.google.android.gms.common.api.internal.zzh.zzb(Unknown Source)
        at com.google.android.gms.common.api.internal.zzl.zzb(Unknown Source)
        at com.google.android.gms.common.api.internal.zzj.zzb(Unknown Source)
        at com.google.android.gms.location.internal.zzd.removeLocationUpdates(Unknown Source)
        at io.ona.kujaku.location.clients.AndroidLocationClient.stopLocationUpdates(AndroidLocationClient.java:48)
        at io.ona.kujaku.views.KujakuMapView.onPause(KujakuMapView.java:538)
        at io.ona.kujaku.activities.MapActivity.onPause(MapActivity.java:392)
        at android.app.Activity.performPause(Activity.java:7139)
        at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1330)
        at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:4165)