解决okhttp报java.lang.IllegalStateException: closed,java.lang.IllegalStateException: closed

解决okhttp 报java.lang.IllegalStateException: closed,java.lang.IllegalStateException: closed,缘由为OkHttp请求回调中response.body().string()只能有效调用一次 在调用了response.body().string()方法以后,response中的流会被关闭,咱们须要建立出一个新的res
相关文章
相关标签/搜索