[英]Get universal image loader instance from a library - Android
I'm using universal image library in my app and now I'm using a library and I need to call the UIL instance from the inside it to load the images, 我在应用中使用通用图片库,现在使用的是图片库,我需要从内部调用UIL实例以加载图片,
When I do the following inside the library 当我在库中执行以下操作时
ImageLoader imageLoader = ImageLoader.getInstance();
Android studio suggests this Android Studio建议这样做
"Add library "universal-image-loader-1.9.3" to classpath
and I do click on it and the editor doesn't complain about it anymore, but when I try to build it the compiler complains with the following, 并且我确实单击它,编辑器不再抱怨它,但是当我尝试构建它时,编译器抱怨以下内容:
Error:(12, 46) error: package com.nostra13.universalimageloader.core does not exist
Error:(21, 5) error: cannot find symbol class ImageLoader
Error:(21, 31) error: cannot find symbol variable ImageLoader
and I did add the dependency to the library gradle and it didn't work as well, 而且我确实将依赖项添加到库gradle中,但效果也不好,
What should I do? 我该怎么办?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.