Android出现错误java.lang.IllegalStateException ImageLoader must be init with configuration befo

来源:互联网 发布:淘宝少女大便 编辑:程序博客网 时间:2024/05/17 01:33

使用Android-Universal-Image-Loader的时候出现这个错误,
java.lang.IllegalStateException: ImageLoader must be init with configuration before using

解决的办法:
protected ImageLoader imageLoader;

imageLoader = ImageLoader.getInstance();
imageLoader.init(ImageLoaderConfiguration.createDefault(this));

本人菜鸟一个,有什么不对的地方,希望大家指出评论,大神勿喷,希望大家一起学习进步!

1 0
原创粉丝点击