我对离子框架和Angular JS更新。我安装离子框架
使用离子启动myApp标签正常工作。然后我应用这个
启动项目的命令离子启动myApp选项卡新项目已创建
然后成功运行此项目我使用了一些命令:
1.cd myApp
2离子平台添加android
这些命令成功运行但是当我点击此命令时:
离子构建android
在运行命令中执行此操作时:
正在下载http://services.gradle.org/distributions/gradle-2.2.1-all.zip
它给出错误:
Exception in thread "main" java.lang.RuntimeException: java.net.UnknownHostExcep
tion: services.gradle.org
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAcc
essManager.java:78)
at org.gradle.wrapper.Install.createDist(Install.java:47)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
Caused by: java.net.UnknownHostException: services.gradle.org
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java
:178)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
at sun.net.www.http.HttpClient.New(HttpClient.java:308)
at sun.net.www.http.HttpClient.New(HttpClient.java:326)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC
onnection.java:997)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
ction.java:933)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
.java:851)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:1301)
nection.java:1301)
at org.gradle.wrapper.Download.downloadInternal(Download.java:59)
at org.gradle.wrapper.Download.download(Download.java:45)
at org.gradle.wrapper.Install$1.call(Install.java:60)
at org.gradle.wrapper.Install$1.call(Install.java:47)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAcc
essManager.java:65)
... 3 more
Error: Error code 1 for command: cmd with args: /s,/c,"C:\Users\broswire\myApp\p
latforms\android\gradlew cdvBuildDebug -b C:\Users\broswire\myApp\platforms\andr
oid\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"