cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Diego Geffner (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-9639) --stacktrace and --debug have no effect on "cordova run android"
Date Thu, 10 Sep 2015 16:45:46 GMT

    [ https://issues.apache.org/jira/browse/CB-9639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14739088#comment-14739088
] 

Diego Geffner commented on CB-9639:
-----------------------------------

This is my cordova info:
Collecting Data...


Node version: v0.12.7

Cordova version: 5.3.1

Config.xml file: 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget id="com.ionicframework.myappname444210" version="0.0.1" xmlns="http://www.w3.org/ns/widgets"
xmlns:cdv="http://cordova.apache.org/ns/1.0">
  <name>Grandma is alive</name>
  <description>
        An Ionic Framework and Cordova project.
    </description>
  <author email="hi@ionicframework" href="http://ionicframework.com/">
      Ionic Framework Team
    </author>
  <content src="index.html"/>
  <access origin="*"/>
  <preference name="webviewbounce" value="false"/>
  <preference name="UIWebViewBounce" value="false"/>
  <preference name="DisallowOverscroll" value="true"/>
  <preference name="android-minSdkVersion" value="16"/>
  <preference name="BackupWebStorage" value="none"/>
  <feature name="StatusBar">
    <param name="ios-package" value="CDVStatusBar" onload="true"/>
  </feature>
</widget>

Plugins: 

com.ionic.keyboard,cordova-plugin-camera,cordova-plugin-console,cordova-plugin-device,cordova-plugin-splashscreen,cordova-plugin-whitelist

Android platform:

Available Android targets:
----------
id: 1 or "android-19"
     Name: Android 4.4.2
     Type: Platform
     API level: 19
     Revision: 4
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800,
WXGA800-7in
 Tag/ABIs : no ABIs.
----------
id: 2 or "android-21"
     Name: Android 5.0.1
     Type: Platform
     API level: 21
     Revision: 2
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800,
WXGA800-7in
 Tag/ABIs : no ABIs.
----------
id: 3 or "android-22"
     Name: Android 5.1.1
     Type: Platform
     API level: 22
     Revision: 2
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800,
WXGA800-7in
 Tag/ABIs : no ABIs.
----------
id: 4 or "android-23"
     Name: Android 6.0
     Type: Platform
     API level: 23
     Revision: 1
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800,
WXGA800-7in
 Tag/ABIs : no ABIs.
----------
id: 5 or "Google Inc.:Google APIs:22"
     Name: Google APIs
     Type: Add-On
     Vendor: Google Inc.
     Revision: 1
     Description: Android + Google APIs
     Based on Android 5.1.1 (API level 22)
     Libraries:
      * com.google.android.media.effects (effects.jar)
          Collection of video effects
      * com.android.future.usb.accessory (usb.jar)
          API for USB Accessories
      * com.google.android.maps (maps.jar)
          API for Google Maps
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800,
WXGA800-7in
 Tag/ABIs : google_apis/x86_64
----------
id: 6 or "Google Inc.:Google APIs:23"
     Name: Google APIs
     Type: Add-On
     Vendor: Google Inc.
     Revision: 1
     Description: Android + Google APIs
     Based on Android 6.0 (API level 23)
     Libraries:
      * com.google.android.media.effects (effects.jar)
          Collection of video effects
      * com.android.future.usb.accessory (usb.jar)
          API for USB Accessories
      * com.google.android.maps (maps.jar)
          API for Google Maps
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800,
WXGA800-7in
 Tag/ABIs : google_apis/x86_64

Error retrieving iOS platform information: Error: cmd: Command failed with exit code 1 Error
output:
'xcodebuild' is not recognized as an internal or external command,
operable program or batch file.




> --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


Mime
View raw message