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 voll
After putting compile 'com.android.volley:volley:1.0.0'
into your build.gradle (Module) file under dependencies, it will not work immediately, you will have to restart Android Studio first!
Add this in your "build.gradle" of you app.
implementation 'com.android.volley:volley:1.1.1'
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'
Way too complicated guys. Just include it in your gradle dependencies:
dependencies {
...
compile 'com.mcxiaoke.volley:library:1.0.17'
}
In the "build.gradle" for your app, (the app, not the project), add this:
dependencies {
...
implementation 'com.android.volley:volley:1.1.0'
}
Or you can simply do
ant jar
in your cloned volley git project. You should now see volley.jar
in the volley projects bin
folder. Copy this to you Android Studio's app\libs
folder. Then add following under dependencies
section of Module level build.gradle
file -
compile files('libs/volley.jar')
And you should be good import and use the library classes in your project,