Android Studio报错:Could not download junit.jar

具体错误如下;
Error:A problem occurred configuring project ':app'.
> Could not download junit.jar (junit:junit:4.12)
   > Could not get resource 'https://jcenter.bintray.com/junit/junit/4.12/junit-4.12.jar'.
      > Could not GET 'https://jcenter.bintray.com/junit/junit/4.12/junit-4.12.jar'.

         > Connection to http://localhost:8388 refused

由于下载不下来jar包导致,可以先不用测试依赖

在Gradle文件夹下,找到build.gradle(module app), 将里边的dependences { }中的测试依赖项去掉即可。

猜你喜欢

转载自blog.csdn.net/tianyu704/article/details/50505631