Closed reliveyy closed 8 years ago
引入依赖
compile 'com.squareup.retrofit2:adapter-rxjava:2.0.0-beta3'
添加配置
Retrofit retrofit = new Retrofit.Builder()
//...
.addCallAdapterFactory(RxJavaCallAdapterFactory.create())
//...
.build();
即可
完整错误:java.lang.IllegalArgumentException: Could not locate call adapter for rx.Observable<...>>. Tried: * retrofit2.ExecutorCallAdapterFactory