flutter_mapbox_navigation icon indicating copy to clipboard operation
flutter_mapbox_navigation copied to clipboard

flutter_mapbox_navigation is not compatible with mapbox_gl

Open trinhminhhieu opened this issue 1 year ago • 4 comments

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

trinhminhhieu avatar Jun 01 '24 08:06 trinhminhhieu

did you solve the problem?

esarpeek avatar Jun 06 '24 17:06 esarpeek

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???

Naresh1281910 avatar Aug 06 '24 05:08 Naresh1281910

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.

muhammadnaqeeb avatar Sep 11 '24 19:09 muhammadnaqeeb

@muhammadnaqeeb What do I do if I want to use a higher version of mapbox_maps_flutter ???

Alexgi2002 avatar Jan 22 '25 01:01 Alexgi2002