Value okhttp3.internal.http.RealResponseBody@49ebb98 of type java.lang.String cannot be converted to
2017-12-02 14:49
1306 查看
再编译Android的时候出现以下错误。
Value okhttp3.internal.http.RealResponseBody@49ebb98 of type java.lang.String cannot be converted to JSONArray
。
经排查是以下的一句话
修改为
即可
Value okhttp3.internal.http.RealResponseBody@49ebb98 of type java.lang.String cannot be converted to JSONArray
。
经排查是以下的一句话
String responseText = response.body().toString();
修改为
String responseText = response.body().string();
即可
相关文章推荐
- alue of type java.lang.String cannot be converted to JSONObject
- Value of type java.lang.String cannot be converted to JSONObject
- Json解析异常处理方式(JSONException: Value of type java.lang.String cannot be converted to JSONObject)
- java.lang.RuntimeException: Value <pre>bool(false) of type java.lang.String cannot be converted to J
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONArra
- new JSONObject(str)无法解析 报错:org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject
- Value of type java.lang.String cannot be converted to JSONObject 异常
- Json解析异常处理方式(JSONException: Value of type java.lang.String cannot be converted to JSONObject)
- org.json.JSONException: Value ok of type java.lang.String cannot be converted to JSONObject: [Caugh
- org.json.JSONException: Value ok of type java.lang.String cannot be converted to JSONObject:
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSON
- Json解析异常处理方式(JSONException: Value of type java.lang.String cannot be converted to JSONObject)
- JSONException: Value of type java.lang.String cannot be converted to JSONObject
- JSONException: Value of type java.lang.String cannot be converted to JSONObject
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSON
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONArra
- of type java.lang.String cannot be converted to JSONObject: Android
- Value of type java.lang.String cannot be converted to JSONObject
- org.json.JSONException: Value java.net.UnknownHostException of type java.lang.String cannot be conv
- JSONException:java.lang.String cannot be converted to JSONObject解决办法