AndroidStudio Can't Find Volley
Solution 1:
Google's official Volley is hosted in JCenter, so you have to add jcenter()
to repositories
in the project's build.gradle:
allprojects {
repositories {
mavenCentral()
jcenter() // Add this line
}
}
Solution 2:
Try using this:
compile 'com.mcxiaoke.volley:library:1.0.19'
Solution 3:
Failed to resolve: com.android.volley:volley.1.0.0
in android studio go to File->project structure-> modules->app-> dependencies
click icon +
in right corner then go to module dependency select Volley.
if there is another dependencies name with volley remove that.
Hope it will works for you.
Solution 4:
Failed to resolve: com.android.volley:volley.1.0.0
Open build.gradle and add volley support
compile 'com.mcxiaoke.volley:library-aar:1.0.0'
under dependencies section.
Finally
dependencies {
compile 'com.mcxiaoke.volley:library-aar:1.0.0'//1.0.19
}
Then Clean-Rebuild-Sync
Your Project .
Edit
Using SNAPSHOT
add this to repositories section in build.gradle
repositories {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
add this to dependencies section in build.gradle
compile 'com.mcxiaoke.volley:library:1.0.19-SNAPSHOT'
Courtesy goes to
Solution 5:
It is compile 'com.android.volley:volley:1.0.0'
and not compile 'com.android.volley:volley.1.0.0'
Instead of a dot use a colon.
Post a Comment for "AndroidStudio Can't Find Volley"