Closed sKY02644 closed 5 months ago
Did you find a solution?
The issue seems to be that both packages import (parts of) the same library because both ones are using MapBox internally and this throws the "Duplicate class" error.
For example in Flutter there is a syntax to exclude specific classes when importing something, like here:
import 'package:flutter/material.dart' hide ElevatedButton;
This prevents the import of ElevatedButton
while still being able to use the rest of the material file normally.
I think there is something similar for Gradle to prevent certain classes (LocationEngine
, LocationEngineCallback
etc. - see your error message) from being imported. I remember there is an exclude
keyword but you have to look up the specific syntax again. Hope this helps at least a bit to get into the right direction :-)
Did you find a solution?
Did you find a solution? @sKY02644
Did you find a solution? @sKY02644
if you using flutter_mapbox_navigation and mapbox_gl at the same time for example ,you should remove one of them, that what i did to fix the problem .
Did you find a solution? @sKY02644
if you using flutter_mapbox_navigation and mapbox_gl at the same time for example ,you should remove one of them, that what i did to fix the problem .
and what if you need both?
Did you find a solution? @sKY02644
if you using flutter_mapbox_navigation and mapbox_gl at the same time for example ,you should remove one of them, that what i did to fix the problem .
and what if you need both?
in my situation i found what i need in mapbox_navigation ,and is better more then mapbox_gl
Did you find a solution? @sKY02644
if you using flutter_mapbox_navigation and mapbox_gl at the same time for example ,you should remove one of them, that what i did to fix the problem .
and what if you need both?
in my situation i found what i need in mapbox_navigation ,and is better more then mapbox_gl
okay🙏🙏
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.
hello @sKY02644 ,with mapbox_navigation you can just display a map without doing voice assistance?
hello @sKY02644 ,with mapbox_navigation you can just display a map without doing voice assistance?
i plan to use flutter_mapbox_navigation.
did not get to use mapbox_navigation
i am getting the above error when i add the current version of the
flutter_mapbox_navigation
with the current version of themapbox_gl
only
flutter_mapbox_navigation: ^0.0.26
seems to work with the current version ofmapbox_gl
please help ASAP
please we are too deep to start all over any one here to assist
@tobrun @andrea689 @felix-ht @felix-mittermeier @TimothySealy