{ "id": "95126", "key": "TIMOB-10072", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "14161", "description": "Release 3.0.1", "name": "Release 3.0.1", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14624", "description": "2012 Sprint 24 JS", "name": "2012 Sprint 24", "archived": true, "released": true, "releaseDate": "2012-12-03" }, { "id": "14627", "description": "2012 Sprint 24 JS", "name": "2012 Sprint 24 JS", "archived": true, "released": true, "releaseDate": "2012-12-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-01-24T03:36:42.000+0000", "created": "2012-07-13T11:01:56.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "emulator", "qe-testadded", "triage" ], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" }, { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2013-10-03T07:19:24.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "h2. Problem description\r\nTrying to launch the emulator using 'titanium emulator' in console fails.\r\n\r\n1) --platform is listed as an optional parameter for emulator, but it is required.\r\n2) When --platform=android is used, the command fails and the emulator is not run.\r\n\r\nh2. Steps to reproduce\r\n\r\nFrom the console, run (in a project directory):\r\n\r\n{code}\r\n$ titanium emulator\r\nrequired argument '--platform' missing\r\n\r\n$ titanium emulator --platform=android\r\nInvalid platform type: android\r\n{code}\r\n\r\nh2. Additional note\r\nCustomer gets a different error:\r\n\r\n{code}\r\n$ titanium emulator --platform=android\r\nTraceback (most recent call last):\r\nFile \"/Users/chaim/Library/Application Support/Titanium/mobilesdk/osx/2.0.2.GA/android/builder.py\", line 2081, in \r\ntiappxml = TiAppXML(os.path.join(project_dir, 'tiapp.xml'))\r\nFile \"/Users/chaim/Library/Application Support/Titanium/mobilesdk/osx/2.0.2.GA/tiapp.py\", line 52, in __init__\r\ndata = codecs.open(self.file,'r','utf-8','replace')\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.py\", line 881, in open\r\nfile = __builtin__.open(filename, mode, buffering)\r\nIOError: [Errno 2] No such file or directory: 'android/tiapp.xml'\r\n{code}\r\n\r\n\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: CLI won't launch Android Emulator", "creator": { "name": "tinjaw", "key": "tinjaw", "displayName": "Chaim Krause", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "tinjaw", "key": "tinjaw", "displayName": "Chaim Krause", "active": true, "timeZone": "America/Chicago" }, "environment": "Titanium SDK: 2.1.2, 2.1.3, 2.1.4, 3.0.0\r\nOS: Mountain Lion 10.8.2, Lion 10.7.5\r\nTitanium CLI: disabled\r\nAndroid Emulator: Google APIs 2.2\r\n", "comment": { "comments": [ { "id": "208864", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We need complete environment to diagnose this issue.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-23T08:31:48.000+0000", "updated": "2012-07-23T08:31:48.000+0000" }, { "id": "211453", "author": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is also happening for me in a standard install of 2.1.1.GA. In android/builder.py, the arguments being passed to \\_\\_main\\_\\_ are:\r\n\r\n{code}\r\n0: /Users/paul/Library/Application Support/Titanium/mobilesdk/osx/2.1.1.GA/android/builder.py\r\n1: run-emulator\r\n2: android\r\n3: /Users/paul/Documents/pegli/ti/modules/ti_touchdb/samples/TouchBooks (path to my project)\r\n{code}\r\n\r\nThe \"android\" at position 2 comes from --platform=android. I didn't have time to track down why the wrong arguments are being sent to the builder script, so I modified my build.py at lines 2170-2171 to read:\r\n\r\n{code:python}\r\nproject_dir = sys.argv[3]\r\nsdk_dir = os.environ['ANDROID_SDK']\r\n{code}\r\n\r\nThis seems to do the trick for me.", "updateAuthor": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-03T15:50:21.000+0000", "updated": "2012-08-03T15:50:49.000+0000" }, { "id": "222150", "author": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Still happening in 2.1.3.GA; workaround still applies. New lines to replace are 2218-2219.", "updateAuthor": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-04T21:17:57.000+0000", "updated": "2012-10-04T21:17:57.000+0000" }, { "id": "226699", "author": { "name": "olalonde", "key": "olalonde", "displayName": "Olivier Lalonde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Same problem here. Titanium CLI is totally unusable because of this.", "updateAuthor": { "name": "olalonde", "key": "olalonde", "displayName": "Olivier Lalonde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-08T16:50:03.000+0000", "updated": "2012-11-08T16:50:03.000+0000" }, { "id": "226700", "author": { "name": "olalonde", "key": "olalonde", "displayName": "Olivier Lalonde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "dupe", "updateAuthor": { "name": "olalonde", "key": "olalonde", "displayName": "Olivier Lalonde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-08T16:50:07.000+0000", "updated": "2012-11-08T16:50:28.000+0000" }, { "id": "226754", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Able to reproduce this issue with the same error as in description.\nTesting environment:\nMac OS X Lion 10.7.5\nTitanium SDK, builds:\n2.1.2.GA\n2.1.3.GA \n2.1.4.v20121030173408\n3.0.0.v20121005014113", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-08T20:04:15.000+0000", "updated": "2012-11-08T20:04:15.000+0000" }, { "id": "226757", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Note that Titanium Studio makes this call, which is successful:\n\n{code}\n\"/usr/bin/python\" \"/Users/dhyde/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.v20121107151610/android/builder.py\" \"emulator\" \"Project\" \"/Users/dhyde/Desktop/android/android-sdk-macosx\" \"/Users/dhyde/Desktop/TISTUD-RC/workspace/Project\" \"com.appcelerator.project\" \"4\" \"WVGA854\" \"armeabi\" \"\"\n{code}", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-08T20:42:09.000+0000", "updated": "2012-11-08T20:42:09.000+0000" }, { "id": "226758", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also note the documentation: https://wiki.appcelerator.org/display/guides2/Legacy+Command-Line+Interface\n\nRun a project on the Android Emulator: 'titanium.py run --platform=android'", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-08T20:48:25.000+0000", "updated": "2012-11-08T20:48:25.000+0000" }, { "id": "228152", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3453\n3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3454", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-11-21T08:26:34.000+0000", "updated": "2012-11-21T08:26:34.000+0000" }, { "id": "234702", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Android emulator is being launched now through CLI.\r\nEnvironment used for verification -\r\nTitanium SDK: 3.1.0.v20130114171802\r\nTitanium  Studio:3.0.1.201212181159\r\n", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-17T01:27:40.000+0000", "updated": "2013-01-17T01:27:40.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }