在android中构建cordova项目时出错

时间:2017-01-13 12:25:21

标签: cordova

在android中构建cordova项目时出错。我相信由于代理,我的错误率低于此值。你可以帮我设置gradle代理吗?

或请为此提供替代解决方案。以下是错误。

Error: cmd: Command failed with exit code 1 Error outpu
Exception in thread "main" java.lang.RuntimeException:
tion: services.gradle.org
        at org.gradle.wrapper.ExclusiveFileAccessManage
essManager.java:78)
        at org.gradle.wrapper.Install.createDist(Instal
        at org.gradle.wrapper.WrapperExecutor.execute(W
        at org.gradle.wrapper.GradleWrapperMain.main(Gr
Caused by: java.net.UnknownHostException: services.grad
        at java.net.AbstractPlainSocketImpl.connect(Abs
:184)
        at java.net.PlainSocketImpl.connect(PlainSocket
        at java.net.SocksSocketImpl.connect(SocksSocket
        at java.net.Socket.connect(Socket.java:589)
        at java.net.Socket.connect(Socket.java:538)
        at sun.net.NetworkClient.doConnect(NetworkClien
        at sun.net.www.http.HttpClient.openServer(HttpC
        at sun.net.www.http.HttpClient.openServer(HttpC
        at sun.net.www.http.HttpClient.<init>(HttpClien
        at sun.net.www.http.HttpClient.New(HttpClient.j
        at sun.net.www.protocol.http.HttpURLConnection.
onnection.java:1209)
        at sun.net.www.protocol.http.HttpURLConnection.
ection.java:1157)
        at sun.net.www.protocol.http.HttpURLConnection.
ction.java:1032)
        at sun.net.www.protocol.http.HttpURLConnection.
.java:966)
        at sun.net.www.protocol.http.HttpURLConnection.
nnection.java:1546)
        at sun.net.www.protocol.http.HttpURLConnection.
nection.java:1474)
        at org.gradle.wrapper.Download.downloadInternal
        at org.gradle.wrapper.Download.download(Downloa
        at org.gradle.wrapper.Install$1.call(Install.ja
        at org.gradle.wrapper.Install$1.call(Install.ja
        at org.gradle.wrapper.ExclusiveFileAccessManage
essManager.java:65)
        ... 3 more

0 个答案:

没有答案