Search code examples
androiduniversal-image-loader

Using Universal ImageLoader


If I write this code:

ImageLoader imageLoader = ImageLoader.getInstance(); 

I get this error:

06-16 16:04:23.729: E/AndroidRuntime(13889): java.lang.NoClassDefFoundError: com.nostra13.universalimageloader.core.ImageLoader

I've added universal-image-loader-1.8.4.jar in lib and imported com.nostra13.universalimageloader.core.ImageLoader

How can I use the ImageLoader class?


Solution

  • You need to add the jar to the libs folder and not to the lib. If you add it manually to the lib folder, then go to:
    -> Java Build Path -> Order and Export and there select the jar