Android Studio fail add libs Universal Image Loader

android, android-studio, universal-image-loader

Solution

I just added the universal-image-loader like this:

Firstly download the universal-image-loader-1.8.5-with-sources.jar.

(For 5/2014. universal-image-loader-1.9.2.jar works great. Don't need the "with-sources" file.)

Then put it on my MyAppProject/MyApp/libs.

Right clicking on universal-image-loader-1.8.5-with-sources.jar i add it as a library with the default configuration.

Finally on MyAppProject/MyApp/build.gradle add the following:

dependencies {
compile files('libs/universal-image-loader-1.8.5-with-sources.jar')
}

Problem

Android-Universal-Image-Loader(https://github.com/nostra13/Android-Universal-Image-Loader) is my favorite library. But it can't add libs when i use Android Studio(use 0.1.5 version). i know how to add libs in Android Studio (https://stackoverflow.com/a/16628496/397457) when i add Android-Universal-Image-Loader libs to Android Studio. Editor error about "can't reslove R". i try this Max OSX(i try too Windows but fail. Windows error message => "Gradle: error: package com.nostra13.universalimageloader.core does not exist". but Editor no error message. only show when i run application) other libs like Gson no problem. but only Android-Universal-Image-Loader have this problem. Your Android Studio success add Android-Universal-Image-Loader? if success tell me how to.

Original source

Related problems