Search code examples
androidandroid-studioandroid-libraryandroid-volley

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:

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?


Solution

  • 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'