-
Notifications
You must be signed in to change notification settings - Fork 236
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
Fatal Exception #180
Comments
Add this permission in manifest: Change play-services-location for this version in build.gradlew: Change LocationUpdateService for this: package com.almoullim.background_location import android.annotation.SuppressLint class LocationUpdatesService : Service() {
} |
Temporary solution: |
it works, thank you |
didn't work with me |
Downgrade to version: |
A mí me funcionó, llevaba horas en el problema. dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.google.android.gms:play-services-location:21.0.0'
} La ruta del archivo que menciona la solución que me funcionó a mí fue |
It appears as though this change was made in this line of PR #183: https://github.com/Almoullim/background_location/pull/183/files#diff-197b190e4a3512994d2cebed8aff5479ff88e136b8cc7a4b148ec9c3945bd65aL54 This leads me to believe this issue has been resolved as of release 0.10.0 which is on the master branch. |
[log] LatLng(-21.134187, -41.6647957)
D/AndroidRuntime( 6087): Shutting down VM
E/AndroidRuntime( 6087): FATAL EXCEPTION: main
E/AndroidRuntime( 6087): Process: com.cbta.app, PID: 6087
E/AndroidRuntime( 6087): java.lang.IncompatibleClassChangeError: Found interface com.google.android.gms.location.FusedLocationProviderClient, but class was expected (declaration of 'com.google.android.gms.location.FusedLocationProviderClient' appears in /data/app/com.cbta.app-mNVxt2IYd1DX0ac4TRiGCQ==/base.apk)
E/AndroidRuntime( 6087): at com.almoullim.background_location.LocationUpdatesService.getLastLocation(LocationUpdatesService.kt:188)
E/AndroidRuntime( 6087): at com.almoullim.background_location.LocationUpdatesService.onCreate(LocationUpdatesService.kt:125)
E/AndroidRuntime( 6087): at android.app.ActivityThread.handleCreateService(ActivityThread.java:4400)
E/AndroidRuntime( 6087): at android.app.ActivityThread.access$1800(ActivityThread.java:274)
E/AndroidRuntime( 6087): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2118)
E/AndroidRuntime( 6087): at android.os.Handler.dispatchMessage(Handler.java:107)
E/AndroidRuntime( 6087): at android.os.Looper.loop(Looper.java:237)
E/AndroidRuntime( 6087): at android.app.ActivityThread.main(ActivityThread.java:8167)
E/AndroidRuntime( 6087): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 6087): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
E/AndroidRuntime( 6087): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
I/Process ( 6087): Sending signal. PID: 6087 SIG: 9
Lost connection to device.
The text was updated successfully, but these errors were encountered: