Skip to content

NoSuchMethodError: android.location.Location.getElapsedRealtimeNanos #86

@agilob

Description

@agilob

I get this exception when I (re-)enable a location backend.

java.lang.NoSuchMethodError: android.location.Location.getElapsedRealtimeNanos at 
org.microg.nlp.location.BackendHelper.updateElapsedRealtimeNanos(BackendHelper.java:112) at 
org.microg.nlp.location.BackendHelper.setLastLocation(BackendHelper.java:102) at 
org.microg.nlp.location.BackendHelper.access$200(BackendHelper.java:40) at 
org.microg.nlp.location.BackendHelper$Callback.report(BackendHelper.java:156) at 
org.microg.nlp.api.LocationCallback$Stub.onTransact(LocationCallback.java:55) at 
android.os.Binder.execTransact(Binder.java:367) at 
dalvik.system.NativeStart.run(Native Method)

When this exception is thrown, Apple backend crashes with NPE:

java.lang.NullPointerException
at org.microg.nlp.backend.apple.BackendService$1.run(BackendService.java:79)
at java.lang.Thread.run(Thread.java:856)

Android 4.1.2 LG phone, stock ROM, I removed GAPPS manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions