Adwhirl android无法解析JSON

时间:2012-02-13 15:03:39

标签: android json adwhirl

嗨我得到一个错误,说adwhirl无法解析json响应 我试图将我的广告加载到AdwhirlLayout中,如文档中所述,但它只是告诉我它无法解析json数据。

02-13 16:00:20.260: D/AdWhirl SDK(13928): Prefs{null}: {"config": "", "timestamp": 1329144790626}
02-13 16:00:20.260: I/AdWhirl SDK(13928): Using stored config data
02-13 16:00:20.260: D/AdWhirl SDK(13928): Received jsonString: 
02-13 16:00:20.260: E/AdWhirl SDK(13928): Unable to parse response from JSON. This may or may not be fatal.
02-13 16:00:20.260: E/AdWhirl SDK(13928): org.json.JSONException: End of input at character 0 of 
02-13 16:00:20.260: E/AdWhirl SDK(13928):   at org.json.JSONTokener.syntaxError(JSONTokener.java:446)
02-13 16:00:20.260: E/AdWhirl SDK(13928):   at org.json.JSONTokener.nextValue(JSONTokener.java:93)
02-13 16:00:20.260: E/AdWhirl SDK(13928):   at org.json.JSONObject.<init>(JSONObject.java:154)
02-13 16:00:20.260: E/AdWhirl SDK(13928):   at org.json.JSONObject.<init>(JSONObject.java:171)
02-13 16:00:20.260: E/AdWhirl SDK(13928):   at com.adwhirl.AdWhirlManager.parseConfigurationString(AdWhirlManager.java:290)
02-13 16:00:20.260: E/AdWhirl SDK(13928):   at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager.java:257)
02-13 16:00:20.260: E/AdWhirl SDK(13928):   at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLayout.java:376)
02-13 16:00:20.260: E/AdWhirl SDK(13928):   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
02-13 16:00:20.260: E/AdWhirl SDK(13928):   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
02-13 16:00:20.260: E/AdWhirl SDK(13928):   at java.util.concurrent.FutureTask.run(FutureTask.java:137)
02-13 16:00:20.260: E/AdWhirl SDK(13928):   at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:150)
02-13 16:00:20.260: E/AdWhirl SDK(13928):   at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:264)
02-13 16:00:20.260: E/AdWhirl SDK(13928):   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1081)
02-13 16:00:20.260: E/AdWhirl SDK(13928):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:574)
02-13 16:00:20.260: E/AdWhirl SDK(13928):   at java.lang.Thread.run(Thread.java:1020)

我的代码:

AdWhirlLayout adWhirlLayout = (AdWhirlLayout) findViewById(R.id.adwhirlLayout);

    int diWidth = 320;
    int diHeight = 52; 
    int density = (int) getResources().getDisplayMetrics().density;

    adWhirlLayout.setAdWhirlInterface(this);
    adWhirlLayout.setMaxWidth((int) (diWidth * density));
    adWhirlLayout.setMaxHeight((int) (diHeight * density));

我的密钥在android manifest

中指定

1 个答案:

答案 0 :(得分:1)

我认为AdWhirl配置服务器现在已关闭。您可能希望在一个小时左右再次尝试,希望它能够在那时备份。