pourquoi ne peut-il pas trouver progressivement junit? Pourquoi ne le cherche-t-il pas dans des dépôts distants?

pourquoi n'est-il pas à la recherche dans des dépôts distants?

après tout ce que j'ai au dessus de mon gradle script mavenCentral()

buildscript {
    repositories {
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:1.1.0'
    }
}

apply plugin: 'com.android.application'

android {
    compileSdkVersion 19
    buildToolsVersion "20.0.0"

et:

dependencies {
    compile fileTree(dir: 'libs', include: '*.jar')
    compile project(':lvl-licensing')
    testCompile 'junit:junit:4.12'
}

résultat est:

$ ./gradlew --info build
.
.
.
Creating configuration testReleaseProvided.
Creating configuration testReleaseWearApp.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':myapp'.
> Could not resolve all dependencies for configuration ':myapp:_debugUnitTestCompile'.
   > Could not find junit:junit:4.12.
     Searched in the following locations:
         file:/home/myuser/Android/Sdk/extras/android/m2repository/junit/junit/4.12/junit-4.12.pom
         file:/home/myuser/Android/Sdk/extras/android/m2repository/junit/junit/4.12/junit-4.12.jar
         file:/home/myuser/Android/Sdk/extras/google/m2repository/junit/junit/4.12/junit-4.12.pom
         file:/home/myuser/Android/Sdk/extras/google/m2repository/junit/junit/4.12/junit-4.12.jar
     Required by:
         myapp-container:myapp:unspecified

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

BUILD FAILED

Total time: 7.023 secs
Stopped 0 compiler daemon(s).

source d'informationauteur Jas