flutter_mapbox_navigation is not compatible with mapbox_gl
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
did you solve the problem?
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???
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 What do I do if I want to use a higher version of mapbox_maps_flutter ???