Universal Image Loader抛出UnsupportedOperationException。谁能告诉我为什么

时间:2013-07-05 05:43:50

标签: android

07-05 13:29:26.916: E/ImageLoader(6751): UIL doesn't support scheme(protocol) by default [><a class=]. You should implement this support yourself (BaseImageDownloader.getStreamFromOtherSource(...))
07-05 13:29:26.916: E/ImageLoader(6751): java.lang.UnsupportedOperationException: UIL doesn't support scheme(protocol) by default [><a class=]. You should implement this support yourself (BaseImageDownloader.getStreamFromOtherSource(...))
07-05 13:29:26.916: E/ImageLoader(6751):    at com.nostra13.universalimageloader.core.download.BaseImageDownloader.getStreamFromOtherSource(BaseImageDownloader.java:206)
07-05 13:29:26.916: E/ImageLoader(6751):    at com.nostra13.universalimageloader.core.download.BaseImageDownloader.getStream(BaseImageDownloader.java:95)
07-05 13:29:26.916: E/ImageLoader(6751):    at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.downloadImage(LoadAndDisplayImageTask.java:340)
07-05 13:29:26.916: E/ImageLoader(6751):    at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.tryCacheImageOnDisc(LoadAndDisplayImageTask.java:307)
07-05 13:29:26.916: E/ImageLoader(6751):    at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.tryLoadBitmap(LoadAndDisplayImageTask.java:249)
07-05 13:29:26.916: E/ImageLoader(6751):    at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.run(LoadAndDisplayImageTask.java:131)
07-05 13:29:26.916: E/ImageLoader(6751):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
07-05 13:29:26.916: E/ImageLoader(6751):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
07-05 13:29:26.916: E/ImageLoader(6751):    at java.lang.Thread.run(Thread.java:856)
07-05 13:29:26.926: E/ImageLoader(6751): UIL doesn't support scheme(protocol) by default [><a class=]. You should implement this support yourself (BaseImageDownloader.getStreamFromOtherSource(...))
07-05 13:29:26.926: E/ImageLoader(6751): java.lang.UnsupportedOperationException: UIL doesn't support scheme(protocol) by default [><a class=]. You should implement this support yourself (BaseImageDownloader.getStreamFromOtherSource(...))
07-05 13:29:26.926: E/ImageLoader(6751):    at com.nostra13.universalimageloader.core.download.BaseImageDownloader.getStreamFromOtherSource(BaseImageDownloader.java:206)
07-05 13:29:26.926: E/ImageLoader(6751):    at com.nostra13.universalimageloader.core.download.BaseImageDownloader.getStream(BaseImageDownloader.java:95)
07-05 13:29:26.926: E/ImageLoader(6751):    at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.downloadImage(LoadAndDisplayImageTask.java:340)
07-05 13:29:26.926: E/ImageLoader(6751):    at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.tryCacheImageOnDisc(LoadAndDisplayImageTask.java:307)
07-05 13:29:26.926: E/ImageLoader(6751):    at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.tryLoadBitmap(LoadAndDisplayImageTask.java:249)
07-05 13:29:26.926: E/ImageLoader(6751):    at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.run(LoadAndDisplayImageTask.java:131)
07-05 13:29:26.926: E/ImageLoader(6751):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
07-05 13:29:26.926: E/ImageLoader(6751):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
07-05 13:29:26.926: E/ImageLoader(6751):    at java.lang.Thread.run(Thread.java:856)

谁能告诉我原因

1 个答案:

答案 0 :(得分:0)

我想这是因为你给了它一个HTML片段,而不是一个URL。但是you need to post the actual code that is failing