
retrofit
乐奇奇
奔跑吧,少年!翱翔吧,春青!
展开
-
retrofit 完全解释,注解详细说明。
Retrofit turns your HTTP API into a Java interface.public interface GitHubService { @GET("users/{user}/repos") CallListRepo>> listRepos(@Path("user") String user);}The Retrofit class gene转载 2016-10-18 15:02:01 · 599 阅读 · 0 评论 -
使用retrofit+rxjava报java.lang.IllegalStateException: Fatal Exception thrown on Scheduler.Worker thread
该问题原因很简单。因为导入的包版本不一致。解决方法,将拦截器和okhttp的般片设置一致即可。例如:compile 'com.squareup.okhttp3:okhttp:3.3.1'compile 'com.squareup.okhttp3:logging-interceptor:3.3.1'原创 2017-03-18 03:06:55 · 1044 阅读 · 0 评论