-
Notifications
You must be signed in to change notification settings - Fork 509
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
mapBoxMap causing flutter app crash #1296
Comments
PR #1293 worked for me, just use the GitHub link in mapbox_gl:
git:
url: https://github.com/flutter-mapbox-gl/maps
ref: 9eef30d # or master |
thanks for your answer but it doesn't work for me app still crashing before rendering the map |
W/CrashReporter(14597): Root directory doesn't exist Build fingerprint: 'samsung/greatltexx/greatlte:9/PPR1.180610.011/N950FXXUGDVG5:user/release-keys' |
Hello guys, You probably need to dig into these dependencies and I suspect there might be some conflict with the flutter geolocation package since these packages are highly probable to be used in combination. Their similar issue: Baseflow/flutter-geolocator#1214 What I can offer for all folks out there is workaround that worked for me: Add this code to
Workaround:
My dependencies:
|
It fixes my issue, thanks for it ! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This work for me! Thanks alot |
I tried force com.google.android.gms:play-services-location:20.0.0, and change mapbox_gl to 0.16.0, geolocator to 9.0.2, when I build my app, it gave the following error: C:\Users\winso\AppData\Local\Pub\Cache\hosted\pub.dev\geolocator_android-4.4.0\android\src\main\java\com\baseflow\geolocator\location\FusedLocationClient.java:91: error: cannot find symbol |
Why downgrading is a solution to close this issue? |
How far make person drop solution i wan die client they collect am next week |
I used MapBox Api and MapBox-gl package to show map in my flutter app but every thing was ok until I had to update my ext,kotlin-version to 1.8.20 (latest version) it was working fine in 1.6.10 but now when I make myLocationEnabled :true the app crashes and show this errors
E/AndroidRuntime( 2456): FATAL EXCEPTION: main
E/AndroidRuntime( 2456): Process: com.example.salesmate, PID: 2456
E/AndroidRuntime( 2456): 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.example.salesmate-Crzx4UqDv2LvaU4s0KqYmQ==/base.apk!classes2.dex)
E/AndroidRuntime( 2456): at com.mapbox.android.core.location.GoogleLocationEngineImpl.requestLocationUpdates(GoogleLocationEngineImpl.java:58)
E/AndroidRuntime( 2456): at com.mapbox.android.core.location.GoogleLocationEngineImpl.requestLocationUpdates(GoogleLocationEngineImpl.java:26)
E/AndroidRuntime( 2456): at com.mapbox.android.core.location.LocationEngineProxy.requestLocationUpdates(LocationEngineProxy.java:34)
E/AndroidRuntime( 2456): at com.mapbox.mapboxsdk.location.LocationComponent.onLocationLayerStart(LocationComponent.java:1439)
E/AndroidRuntime( 2456): at com.mapbox.mapboxsdk.location.LocationComponent.enableLocationComponent(LocationComponent.java:1568)
E/AndroidRuntime( 2456): at com.mapbox.mapboxsdk.location.LocationComponent.setLocationComponentEnabled(LocationComponent.java:551)
E/AndroidRuntime( 2456): at com.mapbox.mapboxgl.MapboxMapController.enableLocationComponent(MapboxMapController.java:274)
E/AndroidRuntime( 2456): at com.mapbox.mapboxgl.MapboxMapController.updateMyLocationEnabled(MapboxMapController.java:1563)
E/AndroidRuntime( 2456): at com.mapbox.mapboxgl.MapboxMapController.setMyLocationEnabled(MapboxMapController.java:1451)
E/AndroidRuntime( 2456): at com.mapbox.mapboxgl.Convert.interpretMapboxMapOptions(Convert.java:253)
E/AndroidRuntime( 2456): at com.mapbox.mapboxgl.MapboxMapController.onMethodCall(MapboxMapController.java:607)
E/AndroidRuntime( 2456): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:258)
E/AndroidRuntime( 2456): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
E/AndroidRuntime( 2456): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:322)
E/AndroidRuntime( 2456): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/AndroidRuntime( 2456): at android.os.Handler.handleCallback(Handler.java:873)
E/AndroidRuntime( 2456): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2456): at android.os.Looper.loop(Looper.java:214)
E/AndroidRuntime( 2456): at android.app.ActivityThread.main(ActivityThread.java:7073)
E/AndroidRuntime( 2456): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 2456): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
E/AndroidRuntime( 2456): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
I/Process ( 2456): Sending signal. PID: 2456 SIG: 9
is there any solution please I am on deadline for project thanks
The text was updated successfully, but these errors were encountered: