【发布时间】:2020-06-19 22:11:30
【问题描述】:
interface StationService {
@GET("/bus/nearstation/latlon/[lat]/[lon]/[distance].json")
suspend fun getStationData(): Response<List<Station>>
}
.
答案 1 更改后:
for (station in it) {
stationNames.append(station.street_name)
.append("\n")
}
在 MainFragment.kt 中出现此错误: For-loop 范围必须有一个 'iterator()' 方法
【问题讨论】: