java - server returned HTTP response code 503 -


i'm getting error when trying build on cordova using node. i'm behind proxy , i've set up. here screenshot. missing.

java_home=c:\program files\java\jdk1.8.0_71  running: c:\xampp\htdocs\myapp\platforms\android\gradlew cdvbuildrelease  -b c:\xampp\htdocs\myapp\platforms\android\build.gradle  -dorg.gradle.daemon=true  downloading http:// services. gradle. org/distributions/gradle-2.2.1-all.zip  exception in thread "main" java.lang.runtimeexception:      java.io.ioexception: server returned http response code: 503 url: http:// services.gradle. org/distributions/gradle-2.2.1-all.zip  @ org.gradle.wrapper.exclusivefileaccessmanager.access(exclusivefileaccessmanager.java:78)  @ org.gradle.wrapper.install.createdist(install.java:47)  @ org.gradle.wrapper.wrapperexecutor.execute(wrapperexecutor.java:129)  @ org.gradle.wrapper.gradlewrappermain.main(gradlewrappermain.java:48)  caused by: java.io.ioexception: server returned http response code: 503 url: http://services. gradle. org/distributions/gradle-2.2.1-all.zip  @ sun.net.www.protocol.http.httpurlconnection.getinputstream0(httpurlconnection.java:1840)  @ sun.net.www.protocol.http.httpurlconnection.getinputstream(httpurlconnection.java:1441)  @ org.gradle.wrapper.download.downloadinternal(download.java:59)  @ org.gradle.wrapper.download.download(download.java:45)  @ org.gradle.wrapper.install$1.call(install.java:60)  @ org.gradle.wrapper.install$1.call(install.java:47)  @ org.gradle.wrapper.exclusivefileaccessmanager.access(exclusivefileaccessmanager.java:65) ... 3 more c:\xampp\htdocs\myapp\platforms\android\cordova\node_modules\q\q.js:126 throw e;  ^ error code 1 command: cmd args: /s /c "c:\xampp\htdocs\myapp\platforms\android\gradlew cdvbuildrelease  -b c:\xampp\htdocs\myapp\platforms\android\build.gradle  -dorg.gradle.daemon=true"  error building 1 of platforms: error: cmd: command failed exit code 1 may not have required environment or os build project  error: cmd: command failed exit code 1 

found solution. can choose 1 or 2

  1. download gradle http://services.gradle.org/distributions/gradle-2.2.1-all.zip , paste in app\platforms\android\gradle , edit build.js in app\platforms\android\cordova\lib , change var distributionurl = 'distributionurl=http\://services.gradle.org/distributions/gradle-2.2.1-all.zip'; var distributionurl = 'distributionurl=../gradle-2.2.1-all.zip';
  2. change var distributionurl = 'distributionurl=http\://services.gradle.org/distributions/gradle-2.2.1-all.zip'; var distributionurl = 'http://services.gradle.org/distributions/gradle-2.2.1-all.zip';

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -