UnviersaImageLoader无法加载图像

时间:2018-07-12 22:27:02

标签: java android universal-image-loader

尝试使用UIL从Web加载图像,但出现错误:

UIL doesn't support scheme(protocol) by default [null]

该图像应为小部件。这是代码:

    UniversalImageLoader.setImage(mUserAccountSettings.getProfile_photo(), mProfileImage, null, "");

图像路径为:

https://firebasestorage.googleapis.com/v0/b/instagramclone-555ff.appspot.com/o/photos%2Fusers%2F1No2BbXVZUbx2Yqi0taGsvMEVnF2%2Fprofile_photo?alt=media&token=48bd1d22-99e2-4e09-ad56-fad57d0e7b08

日志:

E/ImageLoader: UIL doesn't support scheme(protocol) by default [null]. You should implement this support yourself (BaseImageDownloader.getStreamFromOtherSource(...))
   java.lang.UnsupportedOperationException: UIL doesn't support scheme(protocol) by default [null]. You should implement this support yourself (BaseImageDownloader.getStreamFromOtherSource(...))
       at com.nostra13.universalimageloader.core.download.BaseImageDownloader.getStreamFromOtherSource(BaseImageDownloader.java:280)
       at com.nostra13.universalimageloader.core.download.BaseImageDownloader.getStream(BaseImageDownloader.java:99)
       at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.downloadImage(LoadAndDisplayImageTask.java:291)
       at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.tryCacheImageOnDisk(LoadAndDisplayImageTask.java:274)
       at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.tryLoadBitmap(LoadAndDisplayImageTask.java:230)
       at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.run(LoadAndDisplayImageTask.java:136)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
       at java.lang.Thread.run(Thread.java:833)

0 个答案:

没有答案