[转]Android How to Download and Make Volley.jar
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了[转]Android How to Download and Make Volley.jar,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2324字,纯文字阅读大概需要4分钟。
内容图文
If you are using Android Studio, adding volley support can done just by adding ‘compile com.mcxiaoke.volley:library-aar:1.0.0‘ to gradle.build dependencies module.
dependencies {
compile fileTree(dir:
‘libs‘
, include: [
‘*.jar‘
])
compile
‘com.android.support:appcompat-v7:22.2.0‘
compile
‘com.mcxiaoke.volley:library-aar:1.0.0‘
}
|
However if you want to generate the volley.jar manually, below steps will helps you in getting it done.
Downloading & Making volley.jar
We will start with installing tools required to clone and build volley project. For this we need git (to clone the project) and ant (to build) tools.
Installing Git
Git software is used to clone git projects into your local workspace. Download & install git, once installed run git command in terminal just to make sure that it is accessible via command line. If you are getting git command not found error, add the git installation directory to environmental variables.
Installing apache ant
Apache ant is a command-line tool used to build the source code. Download ant fromhttps://ant.apache.org/bindownload.cgi and add the bin path to environmental variables. You should able to execute ant command too in terminal.
Cloning volley library
Open command prompt, navigate to a location where you want to clone volley and execute following command. This will download a copy of volley library into your local drive.
git
clone
https:
//android.googlesource.com/platform/frameworks/volley
|
Making volley.jar
You can use the volley as a library project to your main project or you can simply generate volley.jar and paste it in project libs folder. To generate volley.jar, move into volley dir (cd volley) and execute below commands.
android update project -p .
ant jar
|
You can find generated volley.jar in volley bin folder.
The following video will show you the process of building volley project.
If you are unsuccessful in building the volley, meanwhile you can download volley.jar here.
Adding volley.jar to your project
Once the volley.jar is generated, simply paste it in your project’s libs folder.
原文:http://www.cnblogs.com/ryq2014/p/5199028.html
内容总结
以上是互联网集市为您收集整理的[转]Android How to Download and Make Volley.jar全部内容,希望文章能够帮你解决[转]Android How to Download and Make Volley.jar所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。