Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-13368

Android emulator cannot be launched using titanium.py

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Tooling
    • Labels:
      None
    • Environment:

      3.0.0.GA, OSX

      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)]
      

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              pegli Paul Mietz Egli
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-16124
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code