Volley Android 网络库 [英] Volley Android Networking Library

查看:29
本文介绍了Volley Android 网络库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于在我的项目中使用 Volley 有几个问题:

I have few questions around using Volley in my projects:

  1. 这个库可以在任何 Java 项目中使用,还是只能在 Android 中使用?
  2. 我在此处看到了多个分支,但没有关于从哪个分支开始的文档.我应该从哪个分支开始?
  3. 您如何将这个库集成到您自己的项目中?哪种方法更好:将 Volley 作为一个独立的库项目并旋转一个 jar 并将其放入您的项目中或复制您项目中的所有源代码?
  1. Can this library be used in any Java project or just Android?
  2. I see multiple branches here and no documentation on which branch is to start with. Which branch should I use to start with?
  3. How do you integrate this library in your own project? What approach is better: Make Volley as a standalone library project and spin a jar and put it in your project or copy the all source code inside your project?

推荐答案

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

然后,将 bin/volley.jar 复制到您的 libs/ 文件夹中,然后就可以了!

Then, copy bin/volley.jar into your libs/ folder and off you go!

来源

这篇关于Volley Android 网络库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆