2015-11-01 127 views
0

我刚安装了android studio 1.4。我开始一个应用程序,当我试图运行,它给了我下面的错误:Android Studio Gradle Build Error

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'. 
    \> http://proxy.iiit.ac.in 

我检查了上述两个环节连接,并在文件中检查了>设置> HTTP代理,一切工作正常。

现在该怎么办?

回答

-1

请的build.gradle添加(Module.app)

android { 
     useLibrary 'org.apache.http.legacy' 
    } 

您没有添加的junit.jar或不是依赖性.jar文件

+0

为什么useLibrary“org.apache.http.legacy '应该通过junit的依赖来解决问题? –

+0

您错误地回答了问题或回答了错误的问题:P – therealprashant