Android Studio + Volley

Jilberta picture Jilberta · Aug 29, 2013 · Viewed 76.9k times · Source

I'm new to Android Studio and I want to use Volley library for my app but i can't add the source as a library in Android Studio.

I've searched the web but couldn't find anything. Everywhere is said to import as a library but I don't know how.

I got the volley source from git repository:

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

But I don't know how to add it to my project as a library.

Answer

C0D3LIC1OU5 picture C0D3LIC1OU5 · Jul 21, 2014

UPDATE: Volley is now official and is available through the JCenter. Here's how to import it:

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

DEPRICATED WAY:

Late to the party, but was able to import it by adding this to the build.gradle file:

dependencies {
    compile 'com.mcxiaoke.volley:library:1.0.19'
}