我刚刚安装了android studio 1.4。我启动了一个应用程序,当我尝试运行时,它给出了以下错误:
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代理中检查了它们,一切正常。
我现在该怎么做?
发布于 2015-11-02 07:31:03
请在build.gradle(Module.app)添加
android {
useLibrary 'org.apache.http.legacy'
}您未添加到junit.jar或不是依赖项.jar文件
https://stackoverflow.com/questions/33467898
复制相似问题