【发布时间】:2014-03-27 15:37:20
【问题描述】:
当我尝试将 String 解析为 org.json.JSONObject 时,我收到了 java.lang.RuntimeException: Stub! 异常。我的 Android API 版本是 19。
这是我要解析的String:
{
"url": "http://www.google.com",
"cookie": "012121",
"filename": "Google"
}
JSONObject jsonObject = new JSONObject(str); // getting exception at this line
String url = jsonObject.getString("url");
【问题讨论】:
-
您是否在设备/模拟器或您的环境(测试)上收到此错误?
-
感谢大家的 cmets。我正在运行测试@endriu_l。
标签: java android json android-json