ProtocolException: Expected ':status' header not present

后端 未结 4 1009
粉色の甜心
粉色の甜心 2020-12-05 19:06

Retrofit network calls fails with a Protocol Exception suddenly in a working app. The app was working till yesterday and today all the network calls fails. The calls works f

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-05 19:35

    After hours of mess, finally got a solution. Updating Retrofit and Okhttp3 libraries to the latest version did the trick for me.

    compile 'com.squareup.okhttp3:okhttp:3.9.0'
    
    compile 'com.squareup.retrofit2:retrofit:2.3.0'
    

提交回复
热议问题