2016-10-16 76 views
0

我剛纔遇到了這個問題,我試圖從json文件中獲取值。這個問題甚至出現在舊的完全測試版本中。我以前從來沒有見過這樣的人,所以有人有過這方面的經驗嗎?有沒有辦法解決它?Android JSONException:價值API cals配額超過

完全錯誤:

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) 
+0

您是否正在使用任何第三方API,它擁有每天可撥打多少電話的配額? –

+0

哇,我意識到我很笨,我誤解了這個錯誤,並認爲json調用有一個API限制,這就是爲什麼我很困惑。忽略我,我只是累了。順便說一句:謝謝兄弟。 –

+0

不用擔心。也在那裏。休息一下,稍後再更新時繼續工作。 :] –

回答

1

的JSON呼叫不扔極限錯誤,我用的是API被扔的錯誤。對此太累了。