ImageLoader must be init with configuration before using 错误解决方法
来源:互联网 发布:sony签约网络经销商 编辑:程序博客网 时间:2024/05/27 01:12
最近开发过程中用到了开源项目Android-Universal-Image-Loader。
在程序开发之前在CSDN的文章里看到的有Android-Universal-Image-Loader这么个好东西 ,用起来非常的方便,大家可以看Demo,里面有详细的介绍。
Android-Universal-Image-Loader 在使用的过程中碰到了一些问题。当时完全是按照官方的Demo来搭建的,但是始终程序运行不起来,会报以下错误:
java.lang.RuntimeException: ImageLoader must be init with configuration before using
字面意思是在使用前要初始化
只要加一句话:
imageLoader.init(ImageLoaderConfiguration.createDefault(MainActivity.this));
ps: 经小伙伴们提醒,官方demo中的初始化方法是在application类中调用的
- ImageLoader must be init with configuration before using 错误解决方法
- ImageLoader must be init with configuration before using 错误解决方法
- ImageLoader must be init with configuration before using 错误解决方法
- ImageLoader must be init with configuration before using 错误解决方法
- ImageLoader must be init with configuration before using 错误解决方法
- ImageLoader must be init with configuration before using 错误解决方法
- ImageLoader must be init with configuration before using 错误解决方法c
- Android ImageLoader must be init with configuration before using 错误解决方法
- Android ImageLoader must be init with configuration before using 错误解决方法
- ImageLoader must be init with configuration before using
- ImageLoader must be init with configuration before using
- 解决ImageLoader must be init with configuration before using
- ImageLoader must be init with configuration before using
- Android: ImageLoader must be init with configuration before using
- ImageLoader must be init with configuration before using
- 关于ImageLoader must be init with configuration before using问题解决
- java.lang.RuntimeException: ImageLoader must be init with configuration before using的解决方法
- 开源项目Universal Image Loader :ImageLoader must be init with configuration before using
- C 语言网络操作
- 【Transact-SQL】找出不包含字母、不包含汉字的数据
- flex 轮询通道配置的解释
- 文件按行逆序的简单实现
- 左右两部分 中间选择按钮(添加,删除)
- ImageLoader must be init with configuration before using 错误解决方法
- 异步POST请求和同步请求
- 5.12 QQ群里的第二次线下活动
- iOS 开发 高级:使用 宏定义macros (#,##,...,__VA_ARGS_)
- LCD和Camera各种分辨率
- unity3d学习笔记1
- 领悟
- IE FF(火狐) line-height兼容详解
- HBase源码分析之org.apache.hadoop.hbase.coprocessor包