Go Android Download and make Volley.jar

Source: Internet
Author: User

originally from: http://tips.androidhive.info/2015/08/android-how-to-download-and-make-volley-jar/1 Comment.by Ravi Tamada on August

If you're using Android Studio, adding volley support can do 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 would helps you on getting it done.

Downloading & Making Volley.jar

We'll start with installing tools required to clone and build volley project. For this we need git (to clone of 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 the It is accessible via command Line. If you were 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 would download a copy of volley library into the your local drive.

git clonehttps://android.googlesource.com/platform/frameworks/volley

Making Volley.jar
can use the volley as a library project to your main project or can simply generate Volley.jar and paste it in pro Ject 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 would show you the process of building volley project.



If you is unsuccessful in building the volley, meanwhile 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.

Share This article on

Go Android Download and make Volley.jar

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.