[TIMOB-13368] Android emulator cannot be launched using titanium.py
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2013-11-04T06:28:08.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Tooling |
Labels | n/a |
Reporter | Paul Mietz Egli |
Assignee | Chris Barber |
Created | 2013-01-29T16:57:18.000+0000 |
Updated | 2017-03-22T17:26:57.000+0000 |
Description
When I run
$TITANIUM_HOME/titanium.py emulator --platform=android
or ant run.emulator
from the command line, I get the following error:
Traceback (most recent call last):
File "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/module/builder.py", line 256, in <module>
main(sys.argv)
File "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/module/builder.py", line 188, in main
manifest = Manifest(os.path.join(project_dir, 'manifest'))
File "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/manifest.py", line 11, in __init__
f = open(data, 'r')
IOError: [Errno 2] No such file or directory: '/usr/local/Cellar/android-sdk/r21.0.1/manifest'
The titanium.py script calls the modules/builder.py script to launch the emulator. According to the comments in builder.py, that script expects a command string, the platform name, and the project_dir as arguments. The titanium.py script is sending command name, project_dir, and sdk_dir.
Fix is to change the emulator_args function in titanium.py as follows:
def emulator_args(args, script, project_dir, platform):
if platform == 'android':
return [script, 'run-emulator', 'android', project_dir, get_android_sdk(args)]
We're ditching Python, so there's no point in fixing this. Use the new Android build to launch Android emulators.
Closing ticket as the issue will not fix and with reference to the above comments.