D•IT•CLEAR

Results 31 comments of D•IT•CLEAR

你没有订阅 ``` val weatherRepo=WeatherRepo(remote,local); fun getWeather(){ weatherRepo.getWeather() .async(1000) .doOnSuccess { result:Article-> result.let { weatherdara.set(it.content) } }.subscribe({},{}) ```

get set方法不需要的,把private 去掉. 另外,最好附上详细的错误信息

https://www.tianqiapi.com/api/?cityid=shanghai 接口是有返回数据的,看你模型是否对的上

返回的模型是这样的 ![](https://user-images.githubusercontent.com/9278143/61193135-24b75c80-a6ec-11e9-96e9-7941296b3189.png) 按你现有的模型解析当然会不对,应该如下: ```kotlin class CityAndWeather{ @PrimaryKey @ColumnInfo(name = "id") @nonnull var cityid: String?=null @ColumnInfo(name = "updatetime") var update_time: String? = null @ColumnInfo(name = "city") var city: String? = null...

in my case. `flutter packages get` and `flutter run ` the flutter's version is not the same may cause the problem

Thanks to use Dartin , this issue happend when `single(ApiService(get()) ` execute . you can use **lazy** replace **single** to solve this problem temporarily,and I will solve it as soon...

@iamsahilarora

the bug has been fixed, you can update it to 0.1.5 @iamsahilarora

Using list is inspired by [koin](https://github.com/InsertKoinIO/koin), of course using map is also possible. @windrunner414