我想用谷歌的 Volley 图书馆

我正在使用Android Studio,并且知道如何添加.jar库。

但是我无法使用 Volley 文件创建一个.jar库:



这是我的工作:(使用Windows 7)

git clone https://android.googlesource.com/platform/frameworks/volley
cd volley
android.bat update project -p . --target android-19
ant.jar jar

我得到的输出:



怎么了?我如何添加一个非.jar库?

最佳答案

Volley 现在是officially available on JCenter:

将此行添加到您的Android项目的应用程序模块的gradle依赖项中:
implementation 'com.android.volley:volley:1.1.1'

关于android - 将Android Volley导入Android Studio,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/20059576/

10-11 22:21
查看更多