2015-11-01 141 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

相關問題