node.js - Error: cmd: Command failed with exit code 1 -


i got error when try run "d:\myapp\app>ionic build android" command.upto processes work .can 1 tell me proper solution that.thanks in advance.

d:\myapp\app>ionic build android running command: "c:\program files (x86)\nodejs\node.exe" d:\myapp\app\hooks\aft er_prepare\010_add_platform_class.js d:\myapp\app add body class: platform-android running command: cmd "/s /c "d:\myapp\app\platforms\android\cordova\build.bat"" android_home=c:\users\rajitha\appdata\local\android\android-sdk java_home=c:\program files\java\jdk1.7.0_79 running: d:\myapp\app\platforms\android\gradlew cdvbuilddebug -b d:\myapp\app\pl atforms\android\build.gradle -dorg.gradle.daemon=true  failure: build failed exception. 

i can not understand telling me.because set environment variables ex-java,android

* went wrong: problem occurred configuring root project 'android'. > not resolve dependencies configuration ':classpath'.    > not resolve com.android.tools.build:gradle:1.0.0+.      required by:          :android:unspecified       > failed list versions com.android.tools.build:gradle.          > unable load maven meta-data https://repo1.maven.org/maven2/co m/android/tools/build/gradle/maven-metadata.xml.             > not 'https://repo1.maven.org/maven2/com/android/tools/bu ild/gradle/maven-metadata.xml'.                > connection https://repo1.maven.org refused  * try: run --stacktrace option stack trace. run --info or --debug option more log output.  build failed  total time: 6.474 secs  d:\myapp\app\platforms\android\cordova\node_modules\q\q.js:126                     throw e;                           ^ error code 1 command: cmd args: /s /c "d:\myapp\app\platforms\android\g radlew cdvbuilddebug -b d:\myapp\app\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     @ childprocess.whendone (c:\users\rajitha\appdata\roaming\npm\node_modules\ cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)     @ childprocess.emit (events.js:110:17)     @ maybeclose (child_process.js:1015:16)     @ process.childprocess._handle.onexit (child_process.js:1087:5) 

i got same error. turned off firewall , built no errors. must check if connection right. make sure can ping https://repo1.maven.org (i able, cordova blinded firewall) ensure target accessible


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -