ImageLoader must be init with configuration before using 错误解决方法
2014-04-01 11:42
645 查看
最近开发过程中用到了开源项目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));
原来是没有初始化,奇了个怪了!为什么官方的Demo怎么能运行啊?
在程序开发之前在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));
原来是没有初始化,奇了个怪了!为什么官方的Demo怎么能运行啊?
相关文章推荐
- 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 错误解决方法
- 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 错误解决方法
- java.lang.RuntimeException: ImageLoader must be init with configuration before using的解决方法
- 解决使用imageload遇到ImageLoader must be init with configuration before using这种异常
- androidの异常:java.lang.IllegalStateException: ImageLoader must be init with configuration befor 错误解决方法
- 解决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
- 图片异步加载java.lang.IllegalStateException: ImageLoader must be init with cconfiguration 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
- 开源项目Universal Image Loader :ImageLoader must be init with configuration before using
- ImageLoader must be init with configuration before using