简体   繁体   English

无法在Eclipse和CLI中为Android构建Cordova项目

[英]Unable To Build Cordova Project for Android in Eclipse and as well in CLI

I am New to Hybrid Mobile Application . 我是混合移动应用程序的新手 While I try to Build my First Project am Getting the Below Error. 当我尝试构建我的第一个项目时,出现以下错误。

Please help me out of this. 请帮助我。

分享了下面的截图

Looking at the error I guess you are behind a proxy firewall connection which is blocking the downloads from maven repository. 查看错误,我想您是在代理防火墙连接的后面,该防火墙阻止了从Maven存储库的下载。 You may have to configure Gradle to use a proxy server. 您可能必须配置Gradle以使用代理服务器。

This is done by creating a gradle.properties file with the following properties set: 通过创建具有以下属性集的gradle.properties文件来完成此操作:

systemProp.http.proxyHost=www.somehost.org
systemProp.http.proxyPort=8080
systemProp.http.proxyUser=userid
systemProp.http.proxyPassword=password
systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost  

systemProp.https.proxyHost=www.somehost.org
systemProp.https.proxyPort=8080
systemProp.https.proxyUser=userid
systemProp.https.proxyPassword=password
systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost

Place the gradle.properties file in your Gradle home folder. 将gradle.properties文件放置在Gradle主文件夹中。 For Windows, it is %USERPROFILE%.gradle (Ex: C:\\Users\\username.gradle ). 对于Windows,它是%USERPROFILE%.gradle(例如: C:\\ Users \\ username.gradle )。

Check out this SO Post which should be helpful. 查看此SO Post ,这应该会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM