您的位置:首页 > 其它

ImageLoader must be init with configuration before using 错误解决方法

2014-05-18 00:49 429 查看
最近开发过程中用到了开源项目Android-Universal-Image-Loader。Android-Universal-Image-Loader
在使用的过程中碰到了一些问题。当时完全是按照官方的Demo来搭建的,但是始终程序运行不起来,会报以下错误:java.lang.RuntimeException: ImageLoader must be init with configuration before using

找了很久也没有找到问题的解决方法,最后在网上找到了最终的解决方案,只要加一句话:
imageLoader.init(ImageLoaderConfiguration.createDefault(MainActivity.this));
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐