nsvir nsvir - 4 months ago 38x
Android Question

Import Android volley to Android Studio

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:


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.

If someone knows what I did wrong OR if someone knows how add a not .jar library it will be amazing!

Thanks in advance :)


Volley is now officially available on JCenter:

Add this line to your gradle dependencies for your Android project:

compile 'com.android.volley:volley:1.0.0'