我正在尝试将AdWhirl集成到我的应用程序中,但一直很困难。现在我正在使用AdMob(我可以不用AdWhirl就可以工作)。我实现了this guide下面的代码。我最初也尝试过使用千禧年的媒体,但也有同样的错误。下面是我的猫。我该怎么解决?
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
最佳答案
我也有同样的问题,没有配置广告网络。加了一个房子广告给我修好了。您确认AdWhirl服务器控制面板中的AdMob已打开吗?