woheller69 / gpscockpit

Android GPS dashboard and head-up display
GNU Affero General Public License v3.0
190 stars 11 forks source link

App crashes just before getting a lock #9

Closed ravilov closed 2 years ago

ravilov commented 2 years ago

I'm getting this in logcat:

java.lang.AbstractMethodError: abstract method "void android.location.LocationListener.onStatusChanged(java.lang.String, int, android.os.Bundle)"
    at android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:304)
    at android.location.LocationManager$ListenerTransport.-wrap0(LocationManager.java)
    at android.location.LocationManager$ListenerTransport$1.handleMessage(LocationManager.java:242)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6176)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:888)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:778)

Android 7.1.1, if that matters.

woheller69 commented 2 years ago

I think I found the bug. Can you please try the attached app? (Just remove .zip and install) In case of a crash please go to Android/data/org.woheller69/gpscockpit/files in internal memory and upload the crashlog file.

app-debug.apk.zip

ravilov commented 2 years ago

Just tried it, this one gets a lock and doesn't crash. Thanks