Caused by: java.lang.IllegalArgumentException: Unable to create call adapter for io.reactivex.Observable<com.example.retrofitdemo.http.BaseResult<java.util.List<com.example.retrofitdemo.bean.BannerBean>>>
for method DemoApi.getBannerListjava
implementation 'com.squareup.retrofit2:adapter-rxjava:2.4.0' 不支持Rxjava2的轉換react
1.添加依賴:implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'get
2.retrofit添加
.addCallAdapterFactory(RxJava2CallAdapterFactory.create())it