You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2014/09/17 23:53:38 UTC
[jira] [Updated] (CB-7257) emulate doesn't work for android if a
target is specified
[ https://issues.apache.org/jira/browse/CB-7257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Bowser updated CB-7257:
---------------------------
Component/s: CLI
> emulate doesn't work for android if a target is specified
> ---------------------------------------------------------
>
> Key: CB-7257
> URL: https://issues.apache.org/jira/browse/CB-7257
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, CLI
> Affects Versions: 3.5.0
> Environment: Mac OSX
> Reporter: Shawn Freyssonnet-Inder
> Priority: Minor
> Labels: emulate
> Fix For: 3.5.0
>
>
> `cordova run android --emulator` correctly finds a started android emulator and launches the app in it.
> `cordova run android --emulator --target=emulatorName` does not find the emulator. Rather, I get the following error:
> ```
> events.js:72
> throw er; // Unhandled 'error' event
> ^
> Error: spawn ENOENT
> at errnoException (child_process.js:1000:11)
> at Process.ChildProcess._handle.onexit (child_process.js:791:34)
> Error: /Users/shawnfreyssonnet-inder/Work/vigour-js/test/browser/animation/nativeBuildStuff/platforms/android/cordova/run: Command failed with exit code 8
> at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
> at ChildProcess.emit (events.js:98:17)
> at maybeClose (child_process.js:755:16)
> at Process.ChildProcess._handle.onexit (child_process.js:822:5)
> ```
> The same happens using `cordova emulate android --target=emulatorName`
> In both examples, `emulatorName` matches a name found by running `./platforms/android/cordova/lib/list-emulator-images`
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)