Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-8746

Android: Studio should now use 'id' for emulator instead of 'name' when building for android emulator.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 4.9.0, Release 4.8.1
    • Fix Version/s: Release 4.9.1
    • Component/s: Android
    • Labels:
      None
    • Environment:
    • Story Points:
      5
    • Sprint:
      2017 Sprint 14 Studio

      Description

      Description:

      1. When we build for an emulator from studio, it runs command like:

      Process: "/usr/local/bin/appcelerator" "run" "--platform" "android" "--log-level" "trace" "--sdk" "6.0.4.v20170425123820" "--project-dir" "/Users/lchoudhary/Desktop/workspaces/workspace_2016/checkapp" "--target" "emulator" "--android-sdk" "/Users/lchoudhary/Desktop/android-sdk-macosx" "--device-id" "test 123" "--skip-js-minify" "--no-colors" "--no-progress-bars" "--no-prompt" "--prompt-type" "socket-bundle" "--prompt-port" "62677"
      

      2. Notice that studio uses name for --device-id:

      test 123
          ID                        = test_123
          SDK Version               = Android 6.0 (API level 23)
          ABI                       = x86
          Skin                      = 1080x1920
          Path                      = /Users/lchoudhary/.android/avd/test_123.avd
          SD Card                   = /Users/lchoudhary/.android/avd/test_123.avd/sdcard.img
          Google APIs               = no
      

      3. This was fine until now as android avd manager did not allow you to have space in the emulator name, because of which the name & id of an emulator in appc ti -p android were the same.

      4. But, Google moved to android studio for avd creation etc, because of which now you can have a space in your avd name but, id created by android studio for the same avd does not have a space. Notice the CLI output for emulator info above.

      5. This would require studio to use the id for the emulator instead of the name or figure out a way to co-relate them.

      6. Currently, with studio 4.8.1.201612050850 & avd created with android studio with space in name fails build with:

      [ERROR] :  Invalid "--device-id" value "test 123"
      For help, run: titanium.js help build
      

        Attachments

          Activity

            People

            • Assignee:
              kkolipaka Kondal Kolipaka (Inactive)
              Reporter:
              lchoudhary Lokesh Choudhary
              Reviewer:
              Prashanth Pedduri (Inactive)
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: