友盟分享报错 org.json.JSONException

E/UClient: org.json.JSONException: Value OK of type java.lang.String cannot be converted to JSONObject: [Caught Exception in decryptData()]
E/UClient: at org.json.JSON.typeMismatch(JSON.java:111)
E/UClient: at org.json.JSONObject.<init>(JSONObject.java:163)
E/UClient: at org.json.JSONObject.<init>(JSONObject.java:176)
E/UClient: at com.umeng.socialize.net.utils.UClient.decryptData(UClient.java:477)
E/UClient: at com.umeng.socialize.net.utils.UClient.parseResult(UClient.java:410)
E/UClient: at com.umeng.socialize.net.utils.UClient.httpGetRequest(UClient.java:213)
E/UClient: at com.umeng.socialize.net.utils.UClient.execute(UClient.java:72)
E/UClient: at com.umeng.socialize.net.base.SocializeClient.execute(SocializeClient.java:33)
E/UClient: at com.umeng.socialize.net.stats.StatsAPIs.shareStatsStart(StatsAPIs.java:47)
E/UClient: at com.umeng.socialize.net.analytics.SocialAnalytics$4.run(SocialAnalytics.java:141)
E/UClient: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
E/UClient: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
E/UClient: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
E/UClient: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
E/UClient: at java.lang.Thread.run(Thread.java:764)
W/pool-11-thread-: type=1400 audit(0.0:312): avc: denied { read } for name="address" dev="sysfs" ino=9477 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
E/UClient: org.json.JSONException: Value OK of type java.lang.String cannot be converted to JSONObject: [Caught Exception in decryptData()]
E/UClient: at org.json.JSON.typeMismatch(JSON.java:111)
E/UClient: at org.json.JSONObject.<init>(JSONObject.java:163)
E/UClient: at org.json.JSONObject.<init>(JSONObject.java:176)
E/UClient: at com.umeng.socialize.net.utils.UClient.decryptData(UClient.java:477)
E/UClient: at com.umeng.socialize.net.utils.UClient.parseResult(UClient.java:410)
E/UClient: at com.umeng.socialize.net.utils.UClient.httpGetRequest(UClient.java:213)
E/UClient: at com.umeng.socialize.net.utils.UClient.execute(UClient.java:72)
E/UClient: at com.umeng.socialize.net.base.SocializeClient.execute(SocializeClient.java:33)
E/UClient: at com.umeng.socialize.net.stats.StatsAPIs.shareStatsEnd(StatsAPIs.java:60)
E/UClient: at com.umeng.socialize.net.analytics.SocialAnalytics$5.run(SocialAnalytics.java:159)
E/UClient: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
E/UClient: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
E/UClient: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
E/UClient: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
E/UClient: at java.lang.Thread.run(Thread.java:764)

阿波罗的战车
浏览 853回答 3
3回答

泛舟湖上清波郎朗

Value OK of type java.lang.String cannot be converted to JSONObject: [Caught Exception in decryptData()] String类型不能转化成JSONObject类型

Smart猫小萌

类转换错误,检查一下UClient的477行的代码

绝地无双

类型转换出错,你看下json的数据格式,再结合你的数据结构看下,这个问题是小问题
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java