我正在尝试将 adwhirl 集成到我的应用程序中,并且遇到了非常困难的时期。现在我只是在使用 admob(我可以在没有 adwhirl 的情况下工作)。我按照本指南实现了代码。我最初也尝试过使用千禧媒体,但遇到了同样的错误。下面是我的logcat。我怎样才能解决这个问题?
E/AdWhirl SDK( 345): Unable to parse response from JSON. This may or may not be
fatal.
E/AdWhirl SDK( 345): org.json.JSONException: Value [] of type org.json.JSONArra
y cannot be converted to JSONObject
E/AdWhirl SDK( 345): at org.json.JSON.typeMismatch(JSON.java:107)
E/AdWhirl SDK( 345): at org.json.JSONObject.<init>(JSONObject.java:158)
E/AdWhirl SDK( 345): at org.json.JSONObject.<init>(JSONObject.java:171)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlManager.parseConfigurationString(A
dWhirlManager.java:288)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager
.java:255)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLay
out.java:367)
E/AdWhirl SDK( 345): at java.util.concurrent.Executors$RunnableAdapter.call(E
xecutors.java:444)
E/AdWhirl SDK( 345): at java.util.concurrent.FutureTask$Sync.innerRun(FutureT
ask.java:306)
E/AdWhirl SDK( 345): at java.util.concurrent.FutureTask.run(FutureTask.java:1
38)
E/AdWhirl SDK( 345): at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153)
E/AdWhirl SDK( 345): at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
E/AdWhirl SDK( 345): at java.util.concurrent.ThreadPoolExecutor.runWorker(Thr
eadPoolExecutor.java:1088)
E/AdWhirl SDK( 345): at java.util.concurrent.ThreadPoolExecutor$Worker.run(Th
readPoolExecutor.java:581)
E/AdWhirl SDK( 345): at java.lang.Thread.run(Thread.java:1019)
I/AdWhirl SDK( 345): Sum of ration weights is 0 - no ads to be shown
D/AdWhirl SDK( 345): Prefs{null}: {"config": "[]
D/AdWhirl SDK( 345): ", "timestamp": 1300240033837}
I/AdWhirl SDK( 345): Stored config info not present or expired, fetching fresh
data
D/dalvikvm( 345): GC_CONCURRENT freed 568K, 55% free 2799K/6151K, external 716K
/1038K, paused 5ms+4ms
D/AdWhirl SDK( 345): HTTP/1.1 200 OK
D/AdWhirl SDK( 345): Received jsonString: []
E/AdWhirl SDK( 345): Unable to parse response from JSON. This may or may not be
fatal.
E/AdWhirl SDK( 345): org.json.JSONException: Value [] of type org.json.JSONArra
y cannot be converted to JSONObject
E/AdWhirl SDK( 345): at org.json.JSON.typeMismatch(JSON.java:107)
E/AdWhirl SDK( 345): at org.json.JSONObject.<init>(JSONObject.java:158)
E/AdWhirl SDK( 345): at org.json.JSONObject.<init>(JSONObject.java:171)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlManager.parseConfigurationString(A
dWhirlManager.java:288)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager
.java:255)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLay
out.java:367)
E/AdWhirl SDK( 345): at java.util.concurrent.Executors$RunnableAdapter.call(E
xecutors.java:444)
E/AdWhirl SDK( 345): at java.util.concurrent.FutureTask$Sync.innerRun(FutureT
ask.java:306)
E/AdWhirl SDK( 345): at java.util.concurrent.FutureTask.run(FutureTask.java:1
38)
E/AdWhirl SDK( 345): at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153)
E/AdWhirl SDK( 345): at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
E/AdWhirl SDK( 345): at java.util.concurrent.ThreadPoolExecutor.runWorker(Thr
eadPoolExecutor.java:1088)
E/AdWhirl SDK( 345): at java.util.concurrent.ThreadPoolExecutor$Worker.run(Th
readPoolExecutor.java:581)
E/AdWhirl SDK( 345): at java.lang.Thread.run(Thread.java:1019)
I/AdWhirl SDK( 345): Sum of ration weights is 0 - no ads to be shown
D/AdWhirl SDK( 345): Prefs{null}: {"config": "[]
D/AdWhirl SDK( 345): ", "timestamp": 1300240334473}
I/AdWhirl SDK( 345): Using stored config data
D/AdWhirl SDK( 345): Received jsonString: []
E/AdWhirl SDK( 345): Unable to parse response from JSON. This may or may not be
fatal.
E/AdWhirl SDK( 345): org.json.JSONException: Value [] of type org.json.JSONArra
y cannot be converted to JSONObject
E/AdWhirl SDK( 345): at org.json.JSON.typeMismatch(JSON.java:107)
E/AdWhirl SDK( 345): at org.json.JSONObject.<init>(JSONObject.java:158)
E/AdWhirl SDK( 345): at org.json.JSONObject.<init>(JSONObject.java:171)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlManager.parseConfigurationString(A
dWhirlManager.java:288)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager
.java:255)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLay
out.java:367)
E/AdWhirl SDK( 345): at java.util.concurrent.Executors$RunnableAdapter.call(E
xecutors.java:444)
E/AdWhirl SDK( 345): at java.util.concurrent.FutureTask$Sync.innerRun(FutureT
ask.java:306)
E/AdWhirl SDK( 345): at java.util.concurrent.FutureTask.run(FutureTask.java:1
38)
E/AdWhirl SDK( 345): at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153)
E/AdWhirl SDK( 345): at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
E/AdWhirl SDK( 345): at java.util.concurrent.ThreadPoolExecutor.runWorker(Thr
eadPoolExecutor.java:1088)
E/AdWhirl SDK( 345): at java.util.concurrent.ThreadPoolExecutor$Worker.run(Th
readPoolExecutor.java:581)
E/AdWhirl SDK( 345): at java.lang.Thread.run(Thread.java:1019)
I/AdWhirl SDK( 345): Sum of ration weights is 0 - no ads to be shown
D/AdWhirl SDK( 345): Prefs{null}: {"config": "[]
D/AdWhirl SDK( 345): ", "timestamp": 1300240334473}
I/AdWhirl SDK( 345): Using stored config data
D/AdWhirl SDK( 345): Received jsonString: []
E/AdWhirl SDK( 345): Unable to parse response from JSON. This may or may not be
fatal.
E/AdWhirl SDK( 345): org.json.JSONException: Value [] of type org.json.JSONArra
y cannot be converted to JSONObject
E/AdWhirl SDK( 345): at org.json.JSON.typeMismatch(JSON.java:107)
E/AdWhirl SDK( 345): at org.json.JSONObject.<init>(JSONObject.java:158)
E/AdWhirl SDK( 345): at org.json.JSONObject.<init>(JSONObject.java:171)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlManager.parseConfigurationString(A
dWhirlManager.java:288)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager
.java:255)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLay
out.java:367)
E/AdWhirl SDK( 345): at java.util.concurrent.Executors$RunnableAdapter.call(E
xecutors.java:444)
E/AdWhirl SDK( 345): at java.util.concurrent.FutureTask$Sync.innerRun(FutureT
ask.java:306)
E/AdWhirl SDK( 345): at java.util.concurrent.FutureTask.run(FutureTask.java:1
38)
E/AdWhirl SDK( 345): at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153)
E/AdWhirl SDK( 345): at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
E/AdWhirl SDK( 345): at java.util.concurrent.ThreadPoolExecutor.runWorker(Thr
eadPoolExecutor.java:1088)
E/AdWhirl SDK( 345): at java.util.concurrent.ThreadPoolExecutor$Worker.run(Th
readPoolExecutor.java:581)
E/AdWhirl SDK( 345): at java.lang.Thread.run(Thread.java:1019)
I/AdWhirl SDK( 345): Sum of ration weights is 0 - no ads to be shown
D/AdWhirl SDK( 345): Prefs{null}: {"config": "[]
D/AdWhirl SDK( 345): ", "timestamp": 1300240334473}
I/AdWhirl SDK( 345): Using stored config data
D/AdWhirl SDK( 345): Received jsonString: []
E/AdWhirl SDK( 345): Unable to parse response from JSON. This may or may not be
fatal.
E/AdWhirl SDK( 345): org.json.JSONException: Value [] of type org.json.JSONArra
y cannot be converted to JSONObject
E/AdWhirl SDK( 345): at org.json.JSON.typeMismatch(JSON.java:107)
E/AdWhirl SDK( 345): at org.json.JSONObject.<init>(JSONObject.java:158)
E/AdWhirl SDK( 345): at org.json.JSONObject.<init>(JSONObject.java:171)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlManager.parseConfigurationString(A
dWhirlManager.java:288)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager
.java:255)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLay
out.java:367)
E/AdWhirl SDK( 345): at java.util.concurrent.Executors$RunnableAdapter.call(E
xecutors.java:444)
E/AdWhirl SDK( 345): at java.util.concurrent.FutureTask$Sync.innerRun(FutureT
ask.java:306)
E/AdWhirl SDK( 345): at java.util.concurrent.FutureTask.run(FutureTask.java:1
38)
E/AdWhirl SDK( 345): at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153)
E/AdWhirl SDK( 345): at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
E/AdWhirl SDK( 345): at java.util.concurrent.ThreadPoolExecutor.runWorker(Thr
eadPoolExecutor.java:1088)
E/AdWhirl SDK( 345): at java.util.concurrent.ThreadPoolExecutor$Worker.run(Th
readPoolExecutor.java:581)
E/AdWhirl SDK( 345): at java.lang.Thread.run(Thread.java:1019)
I/AdWhirl SDK( 345): Sum of ration weights is 0 - no ads to be shown
D/AdWhirl SDK( 345): Prefs{null}: {"config": "[]
D/AdWhirl SDK( 345): ", "timestamp": 1300240334473}
I/AdWhirl SDK( 345): Using stored config data
D/AdWhirl SDK( 345): Received jsonString: []
E/AdWhirl SDK( 345): Unable to parse response from JSON. This may or may not be
fatal.
E/AdWhirl SDK( 345): org.json.JSONException: Value [] of type org.json.JSONArra
y cannot be converted to JSONObject
E/AdWhirl SDK( 345): at org.json.JSON.typeMismatch(JSON.java:107)
E/AdWhirl SDK( 345): at org.json.JSONObject.<init>(JSONObject.java:158)
E/AdWhirl SDK( 345): at org.json.JSONObject.<init>(JSONObject.java:171)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlManager.parseConfigurationString(A
dWhirlManager.java:288)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager
.java:255)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLay
out.java:367)
E/AdWhirl SDK( 345): at java.util.concurrent.Executors$RunnableAdapter.call(E
xecutors.java:444)
E/AdWhirl SDK( 345): at java.util.concurrent.FutureTask$Sync.innerRun(FutureT
ask.java:306)
E/AdWhirl SDK( 345): at java.util.concurrent.FutureTask.run(FutureTask.java:1
38)
E/AdWhirl SDK( 345): at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153)
E/AdWhirl SDK( 345): at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
E/AdWhirl SDK( 345): at java.util.concurrent.ThreadPoolExecutor.runWorker(Thr
eadPoolExecutor.java:1088)
E/AdWhirl SDK( 345): at java.util.concurrent.ThreadPoolExecutor$Worker.run(Th
readPoolExecutor.java:581)
E/AdWhirl SDK( 345): at java.lang.Thread.run(Thread.java:1019)
I/AdWhirl SDK( 345): Sum of ration weights is 0 - no ads to be shown
D/dalvikvm( 345): GC_CONCURRENT freed 391K, 55% free 2808K/6151K, external 716K
/1038K, paused 4ms+4ms
D/AdWhirl SDK( 345): Prefs{null}: {"config": "[]
D/AdWhirl SDK( 345): ", "timestamp": 1300240334473}
I/AdWhirl SDK( 345): Using stored config data
D/AdWhirl SDK( 345): Received jsonString: []
E/AdWhirl SDK( 345): Unable to parse response from JSON. This may or may not be
fatal.
E/AdWhirl SDK( 345): org.json.JSONException: Value [] of type org.json.JSONArra
y cannot be converted to JSONObject
E/AdWhirl SDK( 345): at org.json.JSON.typeMismatch(JSON.java:107)
E/AdWhirl SDK( 345): at org.json.JSONObject.<init>(JSONObject.java:158)
E/AdWhirl SDK( 345): at org.json.JSONObject.<init>(JSONObject.java:171)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlManager.parseConfigurationString(A
dWhirlManager.java:288)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager
.java:255)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLay
out.java:367)
E/AdWhirl SDK( 345): at java.util.concurrent.Executors$RunnableAdapter.call(E
xecutors.java:444)
E/AdWhirl SDK( 345): at java.util.concurrent.FutureTask$Sync.innerRun(FutureT
ask.java:306)
E/AdWhirl SDK( 345): at java.util.concurrent.FutureTask.run(FutureTask.java:1
38)
E/AdWhirl SDK( 345): at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153)
E/AdWhirl SDK( 345): at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
E/AdWhirl SDK( 345): at java.util.concurrent.ThreadPoolExecutor.runWorker(Thr
eadPoolExecutor.java:1088)
E/AdWhirl SDK( 345): at java.util.concurrent.ThreadPoolExecutor$Worker.run(Th
readPoolExecutor.java:581)
E/AdWhirl SDK( 345): at java.lang.Thread.run(Thread.java:1019)
I/AdWhirl SDK( 345): Sum of ration weights is 0 - no ads to be shown
D/AdWhirl SDK( 345): Prefs{null}: {"config": "[]
D/AdWhirl SDK( 345): ", "timestamp": 1300240334473}
I/AdWhirl SDK( 345): Using stored config data
D/AdWhirl SDK( 345): Received jsonString: []
E/AdWhirl SDK( 345): Unable to parse response from JSON. This may or may not be
fatal.
E/AdWhirl SDK( 345): org.json.JSONException: Value [] of type org.json.JSONArra
y cannot be converted to JSONObject
E/AdWhirl SDK( 345): at org.json.JSON.typeMismatch(JSON.java:107)
E/AdWhirl SDK( 345): at org.json.JSONObject.<init>(JSONObject.java:158)
E/AdWhirl SDK( 345): at org.json.JSONObject.<init>(JSONObject.java:171)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlManager.parseConfigurationString(A
dWhirlManager.java:288)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager
.java:255)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLay
out.java:367)
E/AdWhirl SDK( 345): at java.util.concurrent.Executors$RunnableAdapter.call(E
xecutors.java:444)
E/AdWhirl SDK( 345): at java.util.concurrent.FutureTask$Sync.innerRun(FutureT
ask.java:306)
E/AdWhirl SDK( 345): at java.util.concurrent.FutureTask.run(FutureTask.java:1
38)
E/AdWhirl SDK( 345): at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153)
E/AdWhirl SDK( 345): at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
E/AdWhirl SDK( 345): at java.util.concurrent.ThreadPoolExecutor.runWorker(Thr
eadPoolExecutor.java:1088)
E/AdWhirl SDK( 345): at java.util.concurrent.ThreadPoolExecutor$Worker.run(Th
readPoolExecutor.java:581)
E/AdWhirl SDK( 345): at java.lang.Thread.run(Thread.java:1019)
I/AdWhirl SDK( 345): Sum of ration weights is 0 - no ads to be shown
D/AdWhirl SDK( 345): Prefs{null}: {"config": "[]
D/AdWhirl SDK( 345): ", "timestamp": 1300240334473}
I/AdWhirl SDK( 345): Using stored config data
D/AdWhirl SDK( 345): Received jsonString: []
E/AdWhirl SDK( 345): Unable to parse response from JSON. This may or may not be
fatal.
E/AdWhirl SDK( 345): org.json.JSONException: Value [] of type org.json.JSONArra
y cannot be converted to JSONObject
E/AdWhirl SDK( 345): at org.json.JSON.typeMismatch(JSON.java:107)
E/AdWhirl SDK( 345): at org.json.JSONObject.<init>(JSONObject.java:158)
E/AdWhirl SDK( 345): at org.json.JSONObject.<init>(JSONObject.java:171)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlManager.parseConfigurationString(A
dWhirlManager.java:288)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager
.java:255)
E/AdWhirl SDK( 345): at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLay
out.java:367)
E/AdWhirl SDK( 345): at java.util.concurrent.Executors$RunnableAdapter.call(E
xecutors.java:444)
E/AdWhirl SDK( 345): at java.util.concurrent.FutureTask$Sync.innerRun(FutureT
ask.java:306)
E/AdWhirl SDK( 345): at java.util.concurrent.FutureTask.run(FutureTask.java:1
38)
E/AdWhirl SDK( 345): at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153)
E/AdWhirl SDK( 345): at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
E/AdWhirl SDK( 345): at java.util.concurrent.ThreadPoolExecutor.runWorker(Thr
eadPoolExecutor.java:1088)
E/AdWhirl SDK( 345): at java.util.concurrent.ThreadPoolExecutor$Worker.run(Th
readPoolExecutor.java:581)
E/AdWhirl SDK( 345): at java.lang.Thread.run(Thread.java:1019)
I/AdWhirl SDK( 345): Sum of ration weights is 0 - no ads to be shown