org.json.JSONException: Value ok of type java.lang.String cannot be converted to JSONObject: [Caugh
来源:互联网 发布:上海闵行奥特莱斯淘宝 编辑:程序博客网 时间:2024/05/10 21:09
今天遇到如标题的问题,花费(浪费))了三个小时才解决问题,真是可怜
11-12 19:05:21.041 28558-28643/E/UClient: org.json.JSONException: Value ok of type java.lang.String cannot be converted to JSONObject: [Caught Exception in decryptData()]
11-12 19:05:21.041 28558-28643/E/UClient: at org.json.JSON.typeMismatch(JSON.java:111)
11-12 19:05:21.041 28558-28643/E/UClient: at org.json.JSONObject.(JSONObject.java:160)
11-12 19:05:21.041 28558-28643/E/UClient: at org.json.JSONObject.(JSONObject.java:173)
原因:在使用EventBus时,将项目包里Interface放到本该传递信息的类的位置,就因为这个失误,三个小时就是这么浪费过去了.
在此,警戒一下自己,也提示下一个遇到这个问题的童鞋,不只是后台传的json格式有问题哦
阅读全文
0 0
- 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 JSONObject
- org.json.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 JSONObject
- org.json.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 JSONObject
- org.json.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 JSONObject
- org.json.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 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 JSON
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONArra
- JSONException: Value of type java.lang.String cannot be converted to JSONObject
- Json解析异常处理方式(JSONException: Value of type java.lang.String cannot be converted to JSONObject)
- Value of type java.lang.String cannot be converted to JSONObject
- Value of type java.lang.String cannot be converted to JSONObject
- 5.1计算绝对值
- 并查集
- 浮动(float)
- JavaMap
- SSSP-CRUD-查询-分页
- org.json.JSONException: Value ok of type java.lang.String cannot be converted to JSONObject: [Caugh
- 大写字母转换为小写字母
- django model中上传图片的小技巧
- My jdbc 错误
- 进行一次性校验码的校验(session、时间戳、随机数、字符缓存、绘画)
- POJ-1836 Alignment (Romania OI 2002 线性dp 最长上升子序列)
- c:统计单词数量2
- Java面向对象四大特性之多态
- python获得微信好友头像