简体   繁体   中英

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. You may have to configure Gradle to use a proxy server.

This is done by creating a gradle.properties file with the following properties set:

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. For Windows, it is %USERPROFILE%.gradle (Ex: C:\\Users\\username.gradle ).

Check out this SO Post which should be helpful.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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