ImageLoader must be init with configuration before using

来源:互联网 发布:tensorflow 算法库 编辑:程序博客网 时间:2024/05/17 21:26

Android-Universal-Image-Loader 在使用的过程中碰到了一些问题。当时完全是按照官方的Demo来搭建的,但是始终程序运行不起来,会报以下错误:

java.lang.RuntimeException: ImageLoader must be init with configuration before using

加一代码:

imageLoader.init(ImageLoaderConfiguration.createDefault(MainActivity.this));

0 0
原创粉丝点击