Why this Error occurred? java.lang.RuntimeException: ImageLoader must be init with configuration before using

别来无恙 提交于 2019-11-30 17:47:31

I have added this line in my Constructor and its worked for me...

imageLoader.init(ImageLoaderConfiguration.createDefault(context));
protected ImageLoader imageLoader;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

imageLoader = ImageLoader.getInstance();
imageLoader.init(ImageLoaderConfiguration.createDefault(this));
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!