ImageLoader must be init with configuration before using 错误解决方法
生活随笔
收集整理的這篇文章主要介紹了
ImageLoader must be init with configuration before using 错误解决方法
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
最近開發(fā)過程中用到了開源項目Android-Universal-Image-Loader。
在程序開發(fā)之前在CSDN的文章里看到的有Android-Universal-Image-Loader這么個好東西 ,用起來非常的方便,大家可以看Demo,里面有詳細的介紹。
Android-Universal-Image-Loader 在使用的過程中碰到了一些問題。當時完全是按照官方的Demo來搭建的,但是始終程序運行不起來,會報以下錯誤:
java.lang.RuntimeException: ImageLoader must be init with configuration before using
找了很久也沒有找到問題的解決方法,最后在網(wǎng)上找到了最終的解決方案,只要加一句話:
imageLoader.init(ImageLoaderConfiguration.createDefault(MainActivity.this));
總結
以上是生活随笔為你收集整理的ImageLoader must be init with configuration before using 错误解决方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Android Github 资源目录
- 下一篇: AbsListView.LayoutPa