Guys how do I add `volley` to my project in Androi...
# android
e
Guys how do I add
volley
to my project in Android Studio 3.1.2? I try with
Copy code
implementation 'com.android.volley:volley:1.1.0'
but it fails with the following errors:
Copy code
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.volley:volley:1.1.0.
Open File
Show Details


Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.volley:volley:1.1.0.
Open File
Show Details


Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.android.volley:volley:1.1.0.
Open File
Show Details


Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.android.volley:volley:1.1.0.
Open File
Show Details


Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.android.volley:volley:1.1.0.
Open File
Show Details
p
Why volley ? :)
e
that's a long story brother 🙂 any idea about the issue?
d
Try Koush/Ion, Retrofit, OkHttp... Volley is old and deprecated... It looks like gradle isn't finding it in the repo...
e
I need it because one of the main parts of the app relies on Volley. It used to be ok in AS 3.0.
as soon as I started using adding with
implementation
instead of
compile
the issue started to happen
d
Maybe try clearing all your caches? But I would still recommend refactoring..
e
Wow, Invalidating Cache and restarting AS did the trick! thanks man
👍🏼 3
I had cleaned and rebuilt the project but not this
g
probably you forgot to add correct maven repo for this dependency
r
it means to upgrade to RetroFit 😂