eopeter / flutter_mapbox_navigation

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

Unable to get the embedded navigation version running in Dart SDK V3.13.9 #327

Closed DohanResponse24 closed 10 months ago

DohanResponse24 commented 1 year ago

Unable to get the embedded navigation version running in Dart SDK V3.13.9 I was testing the embedded version on Android.

Exception has occurred. PlatformException (PlatformException(error, Binary XML file line #11 in co.za.response24.responderApp:layout/navigation_activity: Binary XML file line #11 in co.za.response24.responderApp:layout/navigation_activity: Error inflating class , null, android.view.InflateException: Binary XML file line #11 in co.za.response24.responderApp:layout/navigation_activity: Binary XML file line #11 in co.za.response24.responderApp:layout/navigation_activity: Error inflating class Caused by: android.view.InflateException: Binary XML file line #11 in co.za.response24.responderApp:layout/navigation_activity: Error inflating class

NOTE: I am able to get the full navigation working, so i believe the configs is fine.

   var wayPoints = <WayPoint>[];
    wayPoints.add(origin);
    wayPoints.add(destination);
    await MapBoxNavigation.instance.startNavigation(wayPoints: wayPoints);

I tried to add the embedded version but not able to run it with my current version. flutter_mapbox_navigation: 0.1.9

Also note when i upgrade to the latest version. It complies the first time but the second run it fails. I have attached the crash logs it from firebase.

Screenshot 2023-11-07 at 14 16 20

eopeter commented 10 months ago

Stale issue message