You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Diego Geffner (JIRA)" <ji...@apache.org> on 2015/09/10 18:44:46 UTC
[jira] [Created] (CB-9639) --stacktrace and --debug have no effect
on "cordova run android"
Diego Geffner created CB-9639:
---------------------------------
Summary: --stacktrace and --debug have no effect on "cordova run android"
Key: CB-9639
URL: https://issues.apache.org/jira/browse/CB-9639
Project: Apache Cordova
Issue Type: Bug
Components: CLI
Affects Versions: 5.2.0, 5.3.2
Environment: Windows 10 Entreprise using Mingw32
Reporter: Diego Geffner
The issue is actually with cordova 5.3.1, but the issue didn't let me choose that.
Using --stacktrace and --debug or not produces the same output. (It'd would also be nice if it was easier to understand what's happening, e.g.: what's the error)
$ cordova platforms
Installed platforms: android 4.0.2, ios 3.8.0
Available platforms: amazon-fireos, blackberry10, browser, firefoxos, webos, windows, windows8, wp8
$ cordova run android
Running command: "c:\Program Files\nodejs\node.exe" "c:\workspaces\My app name\hooks\after_prepare\010_add_platform_class.js" "c:/workspaces/My app name"
add to body class: platform-android
Running command: cmd "/s /c ""c:\workspaces\My app name\platforms\android\cordova\run.bat"""
ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk-windows
JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_55
WARNING : No target specified, deploying to emulator
Running: c:\workspaces\My app name\platforms\android\gradlew cdvBuildDebug -b c:\workspaces\My app name\platforms\android\build.gradle -PcdvBuildArch=x86 -Dorg.gradle.daemon=true
FAILURE: Build failed with an exception.
* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
c:\workspaces\My app name\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c ""c:\workspaces\My app name\platforms\android\gradlew" cdvBuildDebug -b "c:\workspaces\My app name\platforms\android\build.gradle" -PcdvBuildArch=x86 -Dorg.gradle.daemon=true"
ERROR running one or more of the platforms: Error: cmd: Command failed with exit code 1
You may not have the required environment or OS to run this project
/c/workspaces/My app name
$ cordova run android --stacktrace --debug
Running command: "c:\Program Files\nodejs\node.exe" "c:\workspaces\My app name\hooks\after_prepare\010_add_platform_class.js" "c:/workspaces/My app name"
add to body class: platform-android
Running command: cmd "/s /c ""c:\workspaces\My app name\platforms\android\cordova\run.bat" --debug""
ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk-windows
JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_55
WARNING : No target specified, deploying to emulator
Running: c:\workspaces\My app name\platforms\android\gradlew cdvBuildDebug -b c:\workspaces\My app name\platforms\android\build.gradle -PcdvBuildArch=x86 -Dorg.gradle.daemon=true
FAILURE: Build failed with an exception.
* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
c:\workspaces\My app name\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c ""c:\workspaces\My app name\platforms\android\gradlew" cdvBuildDebug -b "c:\workspaces\My app name\platforms\android\build.gradle" -PcdvBuildArch=x86 -Dorg.gradle.daemon=true"
ERROR running one or more of the platforms: Error: cmd: Command failed with exit code 1
You may not have the required environment or OS to run this project
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org