您的位置:首页 > 其它

IllegalStateException: ImageLoader must be init with configuration before using

2014-07-24 04:59 916 查看
Android-Universal-Image-Loader下载图片 ,用起来非常的方便,但今天再次使用Android-Universal-Image-Loader 总是抛出这样一个问题:java.lang.RuntimeException: ImageLoader must be init with configuration before using无语了,之前这样用还行的,换个项目做就不能用了!解决方法是在使用imageLoader方法的那个类的oncreat方法中加一句话,这样就初始化imageLoader了:
imageLoader.init(ImageLoaderConfiguration.createDefault(MainActivity.this));注意:这句话加在imageview控件被使用之前
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Image-Loader