Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot resolve symbol 'RequestQueue'

I am new to android studio and volley library so please bear with me.

I've added volley library by GitHub and then and added this line to build gradle file:

compile 'com.android.support:appcompat-v7:23.0.1'

And now I am trying some tutorials about request and response from api, but for some reason I cannot make an instance of RequestQueue why? I am using Android 4.0.3 IceCreamSandwish

Thank you

like image 628
Guest012393 Avatar asked Jan 02 '16 14:01

Guest012393


3 Answers

Google have added it to their own documentation pages and GitHub https://developer.android.com/training/volley/index.html

The dependency can be added using:

dependencies {
    ...
    implementation 'com.android.volley:volley:1.1.0'
}
like image 80
Aaron Thompson Avatar answered Oct 08 '22 21:10

Aaron Thompson


add following to your build.gradle file

compile 'com.mcxiaoke.volley:library:1.0.19'
like image 40
CodingRat Avatar answered Oct 08 '22 21:10

CodingRat


Add this volley repo clone to your gradle dependencies:

compile 'com.mcxiaoke.volley:library:1.0.19'

https://github.com/mcxiaoke/android-volley

like image 3
headsvk Avatar answered Oct 08 '22 23:10

headsvk