报错时间: 2019-1-2
是否自己原因: 是
错误位置: 在OkHttp的onResponse方法
@Override
public void onResponse(Call call, Response response) throws IOException {
Log.i("zcq", "content---------------网络请求: "+response.body().string());
//解析
Gson gson = new Gson();
ContentJsonBean contentJsonBean = gson.fromJson(response.body().string(), ContentJsonBean.class);
//回调
callBack.responseData(contentJsonBean);
}
});
错误原因: response.body().string()中的 (.string)只能使用一次
[已解决]