Retrofit访问接口返回异常 ( Expected ':status' header not present )
参考:https://blog.csdn.net/llmmll08/article/details/53217942
但是并没有解决问题,贼恶心;
我依赖的包有:
后来发现确实是有问题:
implementation ('com.squareup.okhttp3:logging-interceptor:3.4.1') 就是这玩意,后来我嫌恶心,换了一下
换成这个即可:
implementation 'com.squareup.okhttp3:okhttp:3.10.0' implementation 'com.squareup.okhttp3:logging-interceptor:3.4.1'