eopeter / flutter_mapbox_navigation

Turn By Turn Navigation for Your Flutter Application
Apache License 2.0
217 stars 186 forks source link

flutter_mapbox_navigation is not compatible with mapbox_gl #364

Open trinhminhhieu opened 5 months ago

trinhminhhieu commented 5 months ago

Execution failed for task ':app:checkDebugDuplicateClasses'.

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable Duplicate class com.mapbox.android.core.location.LocationEngine found in modules jetified-common-23.8.0-runtime (com.mapbox.common:common:23.8.0) and jetified-mapbox-android-core-5.0.0-runtime (com.mapbox.mapboxsdk:mapbox-android-core:5.0.0)

mapbox_gl: 0.1.6
flutter_mapbox_navigation: 0.2.2

Removing flutter_mapbox_navigation solves the problem, but I can't use turn by turn

esarpeek commented 5 months ago

did you solve the problem?

Naresh1281910 commented 3 months ago

Hello,

Me fetching the same error

Execution failed for task ':app:checkDebugDuplicateClasses'.

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt found in modules jetified-kotlin-stdlib-1.8.0 (org.jetbrains.kotlin:kotlin-stdlib:1.8.0) and jetified-kotlin-stdlib-jdk8-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10) Duplicate class kotlin.internal.jdk7.JDK7PlatformImplementations found in modules jetified-kotlin-stdlib-1.8.0 (org.jetbrains.kotlin:kotlin-stdlib:1.8.0) and jetified-kotlin-stdlib-jdk7-1.7.10 (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10)

And when i remove this library

flutter_mapbox_navigation: ^0.2.2

then resolve my problem but i want show the navigation view in the mapbox then how to showing that without using flutter_mapbox_navigation this library???

muhammadnaqeeb commented 2 months ago

Use the official package mapbox_maps_flutter: ^0.6.0 instead of mapbox_gl, and ensure you're using version ^0.6.0 of mapbox_maps_flutter. This package will handle everything you need from mapbox_gl.