【发布时间】:2019-12-04 12:21:00
【问题描述】:
我从这个链接https://developers.google.com/maps/documentation/android/shapes#customizing_appearances找到了这段代码
Polyline line = map.addPolyline(new PolylineOptions()
.add(new LatLng(-37.81319, 144.96298), new LatLng(-31.95285, 115.85734))
.width(25)
.color(Color.BLUE)
.geodesic(true));
我的问题是 Color.Blue 中的 Color 返回一个错误,提示 The name Color does not exist in the current context.
【问题讨论】:
标签: android google-maps google-maps-android-api-2