cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tirtha Rahaman <tirtharaha...@gmail.com>
Subject Re: cordova android test.
Date Sat, 09 May 2015 16:06:43 GMT
Please confirm if you have mistakenly deleted other system environment path
entries. Check whether there are entries for system32 and others.

FYI, for help using Cordova, it is better to use stackoverflow
On 09-May-2015 18:02, "Muhammad Zar" <muhdzar93@gmail.com> wrote:

> hello you can call me Zar,
> im new to this.
> Im following tutorials stated in:
>
> https://netbeans.org/kb/docs/webclient/cordova-gettingstarted.html#installcordova
>
> this is what i've done other than in the tutorial:
> - path setting: 1. JAVA_HOME: java sdk location
>                    2. ANT_HOME: ant location
>                    3. ANDROID_HOME: in the sdk file location
>                    4. Path: android_sdk\tools; android_sdk\platform-tools
> - since i thinnk gradle error: i've follow solution on this link:
>
> http://stackoverflow.com/questions/29874564/ionic-build-android-error-when-download-gradle
> -i've installed phonegap : npm install -g phonegap on command prompt
>
> The problem is when i try to build the app:
> this error occured:
>
> ......
>
> JAVA_HOME=C:\Program Files\Java\jdk1.8.0_40
> Running:
>
> C:\Users\Hp\Documents\NetBeansProjects\CordovaMapApp\platforms\android\gradlew
> cdvBuildDebug -b
>
> C:\Users\Hp\Documents\NetBeansProjects\CordovaMapApp\platforms\android\build.gradle
> -Dorg.gradle.daemon=true
>
> FAILURE: Build failed with an exception.
>
> * What went wrong:
> Could not create an instance of type
> org.gradle.invocation.DefaultGradle_Decorated.
>
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output.
> Command finished with error code 1:
>
> C:\Users\Hp\Documents\NetBeansProjects\CordovaMapApp\platforms\android\cordova\build.bat
> ERROR building one of the platforms: Error:
>
> C:\Users\Hp\Documents\NetBeansProjects\CordovaMapApp\platforms\android\cordova\build.bat:
> Command failed with exit code 1
> You may not have the required environment or OS to build this project
>
>
> C:\Users\Hp\Documents\NetBeansProjects\CordovaMapApp\platforms\android\cordova\node_modules\q\q.js:126
>                     throw e;
>                           ^
> Error code 1 for command: cmd with args: /s /c
>
> "C:\Users\Hp\Documents\NetBeansProjects\CordovaMapApp\platforms\android\gradlew
> cdvBuildDebug -b
>
> C:\Users\Hp\Documents\NetBeansProjects\CordovaMapApp\platforms\android\build.gradle
> -Dorg.gradle.daemon=true"
> Error:
>
> C:\Users\Hp\Documents\NetBeansProjects\CordovaMapApp\platforms\android\cordova\build.bat:
> Command failed with exit code 1
>     at ChildProcess.whenDone
>
> (C:\Users\Hp\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23)
>     at ChildProcess.emit (events.js:110:17)
>     at maybeClose (child_process.js:1015:16)
>     at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
>
> C:\Users\Hp\Documents\NetBeansProjects\CordovaMapApp\nbproject\build.xml:264:
> exec returned: 1
> BUILD FAILED (total time: 1 minute 12 seconds)
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message