Kelin-Hong / MVVMLight

A toolkit help to build Android MVVM Application
1.85k stars 333 forks source link

BUG:初始化Retrofit使用RxJava2CallAdapterFactory则出现Unable to create call adapter for rx.Observable异常 #20

Closed swm888 closed 6 years ago

swm888 commented 7 years ago
  retrofit = new Retrofit.Builder()
                    .baseUrl("http://news-at.zhihu.com/")
//                    .addCallAdapterFactory(RxJava2CallAdapterFactory.create())
                    .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
                    .addConverterFactory(GsonConverterFactory.create(gson))
                    .build();

BUG:初始化Retrofit使用RxJava2CallAdapterFactory则出现Unable to create call adapter for rx.Observable异常。必须用RxJavaCallAdapterFactory的