Skip to content Skip to sidebar Skip to footer

Androidstudio Can't Find Volley

I cloned volley from git clone https://android.googlesource.com/platform/frameworks/volley and imported it as a new module in AndroidStudio, but I get the following error when sync

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

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

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"