Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13582] CLI: Launching emulator without specifying skin will use HVGA and will fail if chosen AVD does not support HVGA

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-09-07T02:27:18.000+0000
Affected Version/sRelease 3.1.0
Fix Version/s2013 Sprint 18 Core, 2013 Sprint 18, Release 3.2.0
ComponentsAndroid, Tooling
Labelsandroidbuild, ay-verified, cb-verified, qe-3.1.0, qe-closed-3.2.0
ReporterOlga Romero
AssigneeChris Barber
Created2013-04-16T00:00:03.000+0000
Updated2013-11-18T23:28:30.000+0000

Description

If you pass in an AVD ID without Skin, HVGA is used as default and passed with the emulator command. If the AVD you chose does not support HVGA, the launch will fail with:
[ERROR]Emulator process exited with code 1
The behavior I was expecting was for the default skin listed with the AVD would be used. You can see the set default in the output of "android list". Steps to reproduce: 1) Run command "android list" in the terminal to see available AVDs 2) Make a note of an AVD ID that does not support HVGA Skin 3) Create a new project 4) Run command ti build -p android -I Result: HVGA Skin is chosen as Default, and will fail if AVD ID does not support that skin. Expected: AVD launches with AVD default skin if no skin passed in.

Comments

  1. Chris Barber 2013-09-07

    This was fixed by the PRs for TIMOB-14973. The fix was to supply a list of emulators to pick and clear error messages. Titanium CLI pull request: https://github.com/appcelerator/titanium/pull/55 node-appc pull request: https://github.com/appcelerator/node-appc/pull/56 Titanium Mobile pull request: https://github.com/appcelerator/titanium_mobile/pull/4658 See the comments on TIMOB-14973 for how to test.
  2. Allen Yeung 2013-10-18

    In the new Android build command, specifying an AVD_ID without a skin causes an error and prompts the user to select an emulator based on device-id. The bug is no longer valid.
  3. Samuel Dowse 2013-11-18

    Verified fixed on: Mac OSX 10.9 Mavericks Titanium Studio, build: 3.2.0.201311160316 Titanium SDK, build: 3.2.0.v20131118142443 CLI: 3.2.0-alpha Alloy: 1.3.0 User is prompted to select a skin that is compatible with the chosen emulator. Used test case from comments in TIMOB-14973. Closing.

JSON Source