Intent intent = new LocationPickerActivity.Builder()
.withGooglePlacesApiKey("x")
.build(getContext());
startActivityForResult(intent, PLACE_PICKER_REQUEST);
Info Required
Which version of the library do you actually use?
10.1.0
Do you have the localization permission granted?
Yes
Are you sending parameters to the activity through the bundle?
No
Android monitor shows any log related to the library when the error is shown?
Yes
Any other thing that could help me to reproduce the error?
No
Error
E/AndroidRuntime: FATAL EXCEPTION: DefaultDispatcher-worker-1
Process: com.example.pi_movil, PID: 2326
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/~~-hDMvUUll-HOSJyOR8GDmg==/com.example.pi_movil-z2sisQdKRs_AY7miJ74PmQ==/base.apk)
at com.adevinta.leku.utils.ReactiveLocationProvider.getLastKnownLocation(ReactiveLocationProvider.kt:25)
at com.adevinta.leku.geocoder.GeocoderPresenter$getLastKnownLocation$1.invokeSuspend(GeocoderPresenter.kt:46)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:749)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@8d22030, Dispatchers.IO]
@MiguelDAD The issue is that you are using a different version of play-services-location than the library on the version 10.1.0. Please update your library to the latest version (10.1.1) to avoid that issue.
Describe the bug Return error when execute:
Info Required
Which version of the library do you actually use? 10.1.0
Do you have the localization permission granted? Yes
Are you sending parameters to the activity through the bundle? No
Android monitor shows any log related to the library when the error is shown? Yes
Any other thing that could help me to reproduce the error? No
Error
Smartphone:
Additional context Gradle: