retrofit 2.0 +RxAndroid 使用中遇到异常 【abstract method not implemented】

在retrofit 2.0 +RxAndroid 程序运行时,报错java.lang.AbstractMethodError: abstract method not implemented at retrofit.RxJavaCallAdapterFactory.get(RxJavaCallAdapterFactory.java)

解决方法:

compile 'com.squareup.retrofit:adapter-rxjava:2.0.0-beta1'
改成:compile 'com.squareup.retrofit:adapter-rxjava:2.0.0-beta2'

发布了33 篇原创文章 · 获赞 5 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/hjiangshujing/article/details/51742226