Android JSONException:超出了值API cals配额

时间:2016-10-16 05:44:28

标签: android arrays json api jsonexception

我今天遇到了这个问题,我试图从json文件中获取值。这个问题甚至出现在旧的经过全面测试的版本中。我以前也没见过这个,所以有人有这方面的经验吗?有办法解决吗?

完全错误:

10-16 01:38:10.449 9300-10047/com.andrewxia.carnanny W/System.err: org.json.JSONException: Value API calls quota exceeded! maximum admitted 60 per hour of type java.lang.String cannot be converted to JSONArray
10-16 01:38:10.450 9300-10047/com.andrewxia.carnanny W/System.err:     at org.json.JSON.typeMismatch(JSON.java:111)
10-16 01:38:10.450 9300-10047/com.andrewxia.carnanny W/System.err:     at org.json.JSONArray.<init>(JSONArray.java:96)
10-16 01:38:10.450 9300-10047/com.andrewxia.carnanny W/System.err:     at org.json.JSONArray.<init>(JSONArray.java:108)
10-16 01:38:10.450 9300-10047/com.andrewxia.carnanny W/System.err:     at com.andrewxia.carnanny.business.BusinessLayer.processLotResponse(BusinessLayer.java:73)
10-16 01:38:10.450 9300-10047/com.andrewxia.carnanny W/System.err:     at com.andrewxia.carnanny.business.BusinessLayer.getParkingLots(BusinessLayer.java:34)
10-16 01:38:10.450 9300-10047/com.andrewxia.carnanny W/System.err:     at com.andrewxia.carnanny.views.MapsActivity.getAllParkingSpots(MapsActivity.java:174)
10-16 01:38:10.450 9300-10047/com.andrewxia.carnanny W/System.err:     at com.andrewxia.carnanny.views.MapsActivity_.access$301(MapsActivity_.java:30)
10-16 01:38:10.450 9300-10047/com.andrewxia.carnanny W/System.err:     at com.andrewxia.carnanny.views.MapsActivity_$4.execute(MapsActivity_.java:132)
10-16 01:38:10.450 9300-10047/com.andrewxia.carnanny W/System.err:     at org.androidannotations.api.BackgroundExecutor$Task.run(BackgroundExecutor.java:405)
10-16 01:38:10.450 9300-10047/com.andrewxia.carnanny W/System.err:     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
10-16 01:38:10.450 9300-10047/com.andrewxia.carnanny W/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:237)
10-16 01:38:10.450 9300-10047/com.andrewxia.carnanny W/System.err:     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:154)
10-16 01:38:10.450 9300-10047/com.andrewxia.carnanny W/System.err:     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269)
10-16 01:38:10.450 9300-10047/com.andrewxia.carnanny W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
10-16 01:38:10.451 9300-10047/com.andrewxia.carnanny W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
10-16 01:38:10.451 9300-10047/com.andrewxia.carnanny W/System.err:     at java.lang.Thread.run(Thread.java:818)

1 个答案:

答案 0 :(得分:0)

JSON调用没有抛出限制错误,我正在使用的api抛出了这个错误。对此太累了。