Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoSuchMethodError: android.location.Location.getElapsedRealtimeNanos #86

Closed
agilob opened this issue Apr 18, 2016 · 6 comments
Closed

Comments

@agilob
Copy link

agilob commented Apr 18, 2016

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.

@mar-v-in
Copy link
Member

Fixed in version 1.6.6

@agilob
Copy link
Author

agilob commented Apr 19, 2016

Nice, thanks!

@agilob
Copy link
Author

agilob commented Apr 19, 2016

Out of curiosity, why is UnifiedNlp.apk not in your fdroid repo?

@mar-v-in
Copy link
Member

@agilob
Copy link
Author

agilob commented Apr 19, 2016

I meant this one; https://microg.org/fdroid.html

@mar-v-in
Copy link
Member

The F-Droid client app currently does not work very well with packages being offered in multiple repos. Although this was improved lately (by displaying the repo a package originates from), it's still not perfect (e.g. updates that you can't install because of a different signature/repo will still cause a notification). As this will be confusing for the user and the app is already available in the main F-Droid repo, I think its better to not include it in the repo at the moment.

Once the F-Droid client starts to properly different apps from different sources (maybe by signature) this is of course a good idea, but you can already see problems with GmsCore in my repo which shares the same package name as the no gapps build of UnifiedNlp in the F-Droid repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants