Expected ':status' header not present(使用okhttputils出现)

解决办法:

将版本升级到com.squareup.okhttp3:okhttp:3.9.0可以解决。


如果使用
张鸿洋大神的okhttputils
改成这样就行
implementation 'com.zhy:okhttputils:2.6.2'
implementation 'com.squareup.okhttp3:okhttp:3.9.0'


参考https://www.cnblogs.com/xiangxinhouse/p/9065205.html
posted @ 2024-08-01 10:40  only_books  阅读(1)  评论(0编辑  收藏  举报