【发布时间】:2013-09-11 23:40:42
【问题描述】:
大家好,我很惊讶,因为我的 android 应用程序在我的三星 Galaxy Tab 2 上运行良好,但现在我在 logcat 上出现此错误。
org.json.JSONException: Value <.doctype of type java.lang.String cannot be converted to JSONObject
我已经打开了防火墙端口,并根据 youtube 视频将 mysql 配置为远程访问和 phpmyadmin。
所以我需要帮助,因为我不知道该怎么做!!?
我看到JSONException: Value of type java.lang.String cannot be converted to JSONObject上提供的回复
tks
我有一些错误,例如 http 403
【问题讨论】:
-
看来您解析为 JSON 的输入现在是 XML。尝试记录它以检查它是否是有效的 JSON。
-
当我执行 php 脚本时,我得到了这个结果 [{"NOM":"QUINCONCES","Latitude":"35.702231","Longitude":"-0.65375"},{"NOM" :"PEZERAT","纬度":"35.691835","经度":"-0.624724"}]
-
我猜当您提出请求时,您没有设置正确的响应接受类型。结果你得到 xml,有时是 json。
-
你好,当我显示字符串时,我收到一些错误 http 403 我该怎么办?