解析失败:org.roboelectric:roboelectric:3.2.2

Failed to resolve: org.roboelectric:roboelectric:3.2.2

我正在学习 android 应用程序的单元测试。我正在使用 roboelectric 框架来实现这一点。

build.gradle

apply plugin: 'com.android.application'
apply plugin: 'realm-android'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"
    defaultConfig {
        applicationId "com.xyz.helloworld"
        minSdkVersion 15
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    dataBinding {
        enabled = true
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:25.1.1'
    testCompile 'junit:junit:4.12'
    testCompile 'org.robolectric:robolectric:3.2.2'
}

我收到一个错误 Failed to resolve: org.roboelectric:roboelectric:3.2.2 并多次与 Gradle 同步。

我该如何解决这个问题?提前致谢

这是一些代理问题。我切换到不同的网络然后它对我有用。谢谢