Android Studio + Volley [英] Android Studio + Volley
问题描述
我是 Android Studio 的新手,我想将 Volley 库用于我的应用程序,但我无法将源添加为 Android Studio 中的库.
我在网上搜索过,但没有找到任何东西.据说到处都可以作为库导入,但我不知道如何导入.
我从 git 存储库获得了 volley 源:
https://android.googlesource.com/platform/frameworks/volley
但我不知道如何将它作为库添加到我的项目中.
更新:Volley 现在是正式版本,可通过 JCenter 获得.导入方法如下:
实现'com.android.volley:volley:1.1.1'
被贬低的方式:
晚会,但能够通过将其添加到 build.gradle 文件来导入它:
依赖项{编译'com.mcxiaoke.volley:library:1.0.19'}
这是非官方Maven repo的链接
注意:Volley v1.0.19 是截至 2016 年 2 月 5 日的最新版本.请前往 Maven Repo(使用上面的链接),查找最新版本(artifactId = library
所在的行)并相应地更新您的 gradle 配置中的版本.>
I'm new to Android Studio and I want to use Volley library for my app but i can't add the source as a library in Android Studio.
I've searched the web but couldn't find anything. Everywhere is said to import as a library but I don't know how.
I got the volley source from git repository:
https://android.googlesource.com/platform/frameworks/volley
But I don't know how to add it to my project as a library.
UPDATE: Volley is now official and is available through the JCenter. Here's how to import it:
implementation 'com.android.volley:volley:1.1.1'
DEPRICATED WAY:
Late to the party, but was able to import it by adding this to the build.gradle file:
dependencies {
compile 'com.mcxiaoke.volley:library:1.0.19'
}
Here is the link to unofficial Maven repo
NOTE: Volley v1.0.19 is current as of 02/05/2016. Please go to the Maven Repo (use link above), look up the latest version (line where artifactId = library
) and update the version in your gradle configuration accordingly.
这篇关于Android Studio + Volley的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!