You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Method lineWidth not found when creating NavigationMapRoute #437
The pin will appear on the map and a route will be drawn to it.
Actual behavior
E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.NoSuchMethodError: No static method lineWidth(Lcom/mapbox/mapboxsdk/style/functions/CameraFunction;)Lcom/mapbox/mapboxsdk/style/layers/PropertyValue; in class Lcom/mapbox/mapboxsdk/style/layers/PropertyFactory; or its super classes (declaration of 'com.mapbox.mapboxsdk.style.layers.PropertyFactory' appears in /data/app/com.hall.thomas.test-2/split_lib_dependencies_apk.apk:classes19.dex)
at com.mapbox.services.android.navigation.ui.v5.route.NavigationMapRoute.addNavigationRouteLayer(NavigationMapRoute.java:371)
at com.mapbox.services.android.navigation.ui.v5.route.NavigationMapRoute.initialize(NavigationMapRoute.java:179)
at com.mapbox.services.android.navigation.ui.v5.route.NavigationMapRoute.(NavigationMapRoute.java:156)
at com.mapbox.services.android.navigation.ui.v5.route.NavigationMapRoute.(NavigationMapRoute.java:135)
As @kuja2007 mentioned, this seems to be a mistake in the documentation rather than a bug existing in the codebase since running the testapp doesn't show this crash. Please review your code and if you are still having issues, please provide a way for me to reproduce the crash.
Activity
kuja2007 commentedon Nov 1, 2017
The same issue on my side
Danny-James commentedon Nov 1, 2017
I have this same issue.
kuja2007 commentedon Nov 1, 2017
Hi guys,
Do you need additional data to reproduce this issue?
If yes please let me know.
kuja2007 commentedon Nov 1, 2017
Simple fix.
If you include class "NavigationMapRoute" locally to the project issue is fixed.
Danny-James commentedon Nov 2, 2017
@cammace Any News On This? As I'm Unable To Continue Development Until This Issue Is Resolved.
rheng001 commentedon Nov 6, 2017
Facing same issue as well
cammace commentedon Nov 7, 2017
As @kuja2007 mentioned, this seems to be a mistake in the documentation rather than a bug existing in the codebase since running the testapp doesn't show this crash. Please review your code and if you are still having issues, please provide a way for me to reproduce the crash.
kotdroidZero commentedon Apr 23, 2019
How can we use NavigationMapRoute class with OpenStreetMap instead of MapBox in android?