[TIMOB-13582] CLI: Launching emulator without specifying skin will use HVGA and will fail if chosen AVD does not support HVGA
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-09-07T02:27:18.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | 2013 Sprint 18 Core, 2013 Sprint 18, Release 3.2.0 |
Components | Android, Tooling |
Labels | androidbuild, ay-verified, cb-verified, qe-3.1.0, qe-closed-3.2.0 |
Reporter | Olga Romero |
Assignee | Chris Barber |
Created | 2013-04-16T00:00:03.000+0000 |
Updated | 2013-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:
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.
[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
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.
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.
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.