先贴一张错误图片:
根据错误百度了下,有人说可能是okhttp版本和日志版本不一致导致,试了下,没得效果,给给为贴下我当前引用信息
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.0.0'
implementation 'com.squareup.okhttp3:okhttp:3.2.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.2.0'
后面把版本提高了就可以了,我修改成了3.5.0。