Import Android volley to Android Studio

nsvir picture nsvir · Nov 18, 2013 · Viewed 200.8k times · Source

I wanna use the google's volley library

I am using Android Studio and I know how to add .jar libraries.

But I could not create a .jar library with the volley files:

https://android.googlesource.com/platform/frameworks/volley

Here what I did: (using windows seven)

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

And I get the output:

A java exception has occured.

what is wrong? how can i add a not .jar library?

Answer

shauvik picture shauvik · Feb 22, 2016

Volley is now officially available on JCenter:

Add this line to your gradle dependencies for your Android project's app module:

implementation 'com.android.volley:volley:1.1.1'