Skip to content
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

flutter_mapbox_navigation is not compatible with mapbox_gl #364

Open
trinhminhhieu opened this issue Jun 1, 2024 · 3 comments
Open

flutter_mapbox_navigation is not compatible with mapbox_gl #364

trinhminhhieu opened this issue Jun 1, 2024 · 3 comments

Comments

@trinhminhhieu
Copy link

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
Copy link

esarpeek commented Jun 6, 2024

did you solve the problem?

@Naresh1281910
Copy link

Naresh1281910 commented Aug 6, 2024

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants