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