Android凌空依赖

Android Volley Dependency

Volley 的依赖项似乎 运行 出现编译错误,我不确定为什么?这是我的依赖代码和产生的错误消息。

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.mcxiaoke.volley:library-aar:1.0.0'
}

错误:配置项目“:app”时出现问题。 >

 Could not resolve all dependencies for configuration ':app:_debugCompile'.
   > Could not resolve com.mcxiaoke.volley:library-aar:1.0.0.
     Required by:
         AndroidHive:app:unspecified
      > Could not resolve com.mcxiaoke.volley:library-aar:1.0.0.
         > Could not get resource 'https://jcenter.bintray.com/com/mcxiaoke/volley/library-aar/1.0.0/library-aar-1.0.0.pom'.
            > Could not GET 'https://jcenter.bintray.com/com/mcxiaoke/volley/library-aar/1.0.0/library-aar-1.0.0.pom'.
               > peer not authenticated

在尝试了较新版本的 Volley 之后,我现在收到此编译错误:

Error:(25, 13) Failed to resolve: com.mcxiaoke.volley:library:1.0.7

完整的构建文件:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.example.george.androidhive"
        minSdkVersion 8
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.mcxiaoke.volley:library:1.0.19'
}

试试这个

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

已更新:

该项目已被弃用。使用来自jCenter

的官方版本
compile 'com.android.volley:volley:1.0.0'