当前路线给我一个错误说:
required Error:(50, 71) error:
incompatible types:
com.mapbox.services.api.directions.v5.models.DirectionsRoute cannot be
converted to com.mapbox.api.directions.v5.models.DirectionsRoute
但是,当我修复此错误时,navigationMapRoute.addRoute(currentRoute)
会给我一个错误:
Error:(58, 53) error: incompatible types: com.mapbox.services.api.directions.v5.models.DirectionsRoute cannot be converted to com.mapbox.api.directions.v5.models.DirectionsRoute
反之亦然:
currentRoute = response.body().getRoutes().get(0);
navigationMapRoute.addRoute(currentRoute);