解决okhttp的java.lang.IllegalStateException: closed错误

缘由为OkHttp请求回调中response.body().string()只能有效调用一次,而我使用了两次:java Log.e("test", "onResponse - " + response.body().string() ); String result = response.body().string();   因为上面的LOG使用了一次,底下的取值又使用了一次string
相关文章
相关标签/搜索