Category : mapbox-android

I am using following 2 dependencies in my project but when I use these two simultaneously my app crashes with the following error java.lang.NoClassDefFoundError: Failed resolution of: Lcom/mapbox/android/telemetry/MapboxTelemetry The dependencies I’m using are: implementation ‘com.mapbox.mapboxsdk:mapbox-android-navigation-ui:0.40.0’ implementation ‘com.mapbox.mapboxsdk:mapbox-android-plugin-places-v9:0.12.0′ Now if I remove ‘com.mapbox.mapboxsdk:mapbox-android-plugin-places-v9:0.12.0’ then my app works fine and don’t show any error… I searched on ..

Read more

I’m trying to make an android app with Mapbox SDK in android studio, and just to get familiar I am running through this tutorial. However I am getting dependency errors. Other posts have suggested flicking back to 9.5.0 but that has the same issues. Project build.gradle: allprojects { repositories { google() maven { url ‘https://api.mapbox.com/downloads/v2/releases/maven’ ..

Read more

I’m developing a simple navigator with mapbox API for Android. I’m creating some routes using https://docs.mapbox.com/playground/directions/ playground and i would like to use the generated JSON to generate a DirectionsRoute object. So i call DirectionsRoute.fromJson() but when i do it, the application crashes with this error: E/Mbgl-MapChangeReceiver: Exception in onDidFinishLoadingStyle java.lang.NullPointerException: Null distance at com.mapbox.api.directions.v5.models.$AutoValue_DirectionsRoute.<init>($AutoValue_DirectionsRoute.java:45) ..

Read more

I have implemented latest Mapbox Library with Navigation UI as follow. implementation "com.mapbox.navigation:ui:1.5.1" implementation ‘com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.1’ Link of documentation: Navigation SDK Map SDK What I have implemented: XML: <com.mapbox.navigation.ui.NavigationView android:id="@+id/navigationView" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_below="@id/ll_nav" mapbox:mapbox_cameraZoom="15" /> and Output is: I want that MAP in DARK Mode with Red color of Route Direction. I tried many solutions of ..

Read more

To get my tiles I do: style(styleUri = Style.MAPBOX_STREETS) { +vectorSource(id = "pluto-parcel-source") { url("http://a.tile.openstreetmap.org/{z}/{x}/{y}.png") } But I need to provide a token to a tile provider, with an HTTP header like Authorization: bearer [token]. The documentation shows a skeleton for an HTTP interceptor, but give little clue on how to implement the 5 functions ..

Read more