https://kotlinlang.org logo
#android
Title
# android
e

Erfan

05/01/2018, 12:14 PM
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

Pandu

05/01/2018, 12:36 PM
Why volley ? :)
e

Erfan

05/01/2018, 12:52 PM
that's a long story brother 🙂 any idea about the issue?
d

dave08

05/01/2018, 12:53 PM
Try Koush/Ion, Retrofit, OkHttp... Volley is old and deprecated... It looks like gradle isn't finding it in the repo...
e

Erfan

05/01/2018, 12:55 PM
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

dave08

05/01/2018, 12:56 PM
Maybe try clearing all your caches? But I would still recommend refactoring..
e

Erfan

05/01/2018, 1:04 PM
Wow, Invalidating Cache and restarting AS did the trick! thanks man
👍🏼 3
I had cleaned and rebuilt the project but not this
g

gildor

05/02/2018, 1:31 AM
probably you forgot to add correct maven repo for this dependency
r

rkeazor

05/02/2018, 7:00 PM
it means to upgrade to RetroFit 😂
4 Views