Android的工作室失败添加库通用图像装载机 [英] Android Studio fail add libs Universal Image Loader
问题描述
Android的通用映像下载器(<一href="https://github.com/nostra13/Android-Universal-Image-Loader">https://github.com/nostra13/Android-Universal-Image-Loader)是我最喜欢的库。
Android-Universal-Image-Loader(https://github.com/nostra13/Android-Universal-Image-Loader) is my favorite library.
但它不能添加库当我使用的Android工作室(使用0.1.5版)。
But it can't add libs when i use Android Studio(use 0.1.5 version).
我知道如何在Android的Studio插件库 (<一href="http://stackoverflow.com/a/16628496/397457">http://stackoverflow.com/a/16628496/397457)
i know how to add libs in Android Studio (http://stackoverflow.com/a/16628496/397457)
当我加入Android的通用映像,装载机库到Android工作室。关于不能reslove R编辑错误。我尝试这个最大OSX(我尝试过Windows,但失败的Windows错误信息=>。摇篮:错误:包com.nostra13.universalimageloader.core不存在,但是编辑器没有错误消息只显示当我运行的应用程序。)
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)
其他库一样GSON没有问题。但只有Android的通用映像下载器有这个问题。
other libs like Gson no problem. but only Android-Universal-Image-Loader have this problem.
您的Android工作室成功加入Android的通用映像下载器?如果成功,告诉我怎样。
Your Android Studio success add Android-Universal-Image-Loader? if success tell me how to.
推荐答案
我刚刚添加的通用图像装载机是这样的:
I just added the universal-image-loader like this:
首先下载通用图像装载-1.8.5-与-sources.jar。
Firstly download the universal-image-loader-1.8.5-with-sources.jar.
(对于二千零十四分之五。通用图像装载-1.9.2.jar的伟大工程。不需要带有源文件。)
(For 5/2014. universal-image-loader-1.9.2.jar works great. Don't need the "with-sources" file.)
然后把它放在我的MyAppProject / MyApp的/库。
Then put it on my MyAppProject/MyApp/libs.
右键单击上通用的图像装载-1.8.5-与-sources.jar我添加为默认配置的库。
Right clicking on universal-image-loader-1.8.5-with-sources.jar i add it as a library with the default configuration.
最后,在MyAppProject / MyApp的/ build.gradle添加以下内容:
Finally on MyAppProject/MyApp/build.gradle add the following:
dependencies {
compile files('libs/universal-image-loader-1.8.5-with-sources.jar')
}
这篇关于Android的工作室失败添加库通用图像装载机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!