Android的工作室+排球排球、工作室、Android

2023-09-05 07:04:19 作者:手拿爽歪歪心里自然嗨

我是新来的Andr​​oid Studio和我想用排枪库我的应用程序,但我不能添加源作为Android的Studio中的图书馆。

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.

我得到的凌空源从Git仓库:

I got the volley source from git repository:

https://android.googlesource.com/platform/frameworks/volley

不过,我现在不知道该如何将它添加到我的项目作为一个库。

But I don't know now how to add it to my project as a library.

感谢您的帮助提前。

推荐答案

迟到了,但可以通过添加这对build.gradle文件将其导入:

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.17'
}

下面是链接到非官方 Maven的回购

注:排球v1.0.17截止2015年7月28日。请到Maven的回购(以上使用链接),查询最新的版本(行,其中的artifactId = ),并更新版本的摇篮配置相应。

NOTE: Volley v1.0.17 is current as of 7/28/2015. 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.