Android 方法fillColor()未定义?
我在fillColor、strokeColor和strokeWidth中不断得到相同的错误 Eclipse没有给我任何导入任何内容的选项。你知道会出什么问题吗Android 方法fillColor()未定义?,android,google-maps,Android,Google Maps,我在fillColor、strokeColor和strokeWidth中不断得到相同的错误 Eclipse没有给我任何导入任何内容的选项。你知道会出什么问题吗 CircleOptions circleOptions = new CircleOptions() .center(new LatLng(latitude, longitude)) .radius(1000); // In meters .fillColor(Colo
CircleOptions circleOptions = new CircleOptions()
.center(new LatLng(latitude, longitude))
.radius(1000); // In meters
.fillColor(Color.RED)
.strokeColor(Color.BLACK)
.strokeWidth(2);
将分号的位置移动到链的末尾。您过早地结束了语句,这就是为什么编译器试图在
MainActivity
中查找fillColor()
,而不是CircleOptions
The method fillColor(int) is undefined for the type MainActivity
将分号的位置移动到链的末尾。您过早地结束了语句,这就是为什么编译器试图在
MainActivity
中查找fillColor()
,而不是CircleOptions
The method fillColor(int) is undefined for the type MainActivity
是否应该有一个;半径(1000)后,是否应存在一个;在半径(1000)之后?我说的是移动分号,而不是添加另一个分号。在半径(1000)后去掉分号我说的移动分号,不要再加一个。在半径(1000)