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

Android: Emulators created in Android Studio do not work


    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 5.4.0
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Story Points:


      Android emulators that are created with Android Studio are not being recognized correctly. Because the Android Studio provides pretty fast emulators since a while, we might want to fix this issue.

      Steps to reproduce:
      1. Create a new emulator through Android Studio (e.g. Nexus 5, API level 23)
      2. Check your environment with appc ti info
      3. Note the android warning (also typo in "Uknown"):

        The Android emulator "Nexus_5_API_23" has a problem:
           Uknown error

      4. Run a new android-project with appc run -p android

      Expected behavior: The CLI finds the Android emulator, starts the app
      Actual behavior: An error log is thrown:

      [ERROR] Unable to find any emulators
      Please create an Android emulator, then try again.

      I'm not sure if we ever supported the simulators from Android Studio, but I'm pretty sure we did in the past. And since Genymotion is not licensed for free non-private projects anymore, supporting the "official one" should be a good reason to check this issue. Thanks!

      Full log:

      Hans-Macbook-Pro:hyperloop-examples hknoechel$ appc run -p android
      Appcelerator Command-Line Interface, version 5.4.0
      Copyright (c) 2014-2016, Appcelerator, Inc.  All Rights Reserved.
      [INFO]  tiapp.xml <sdk-version> set to 5.4.0.GA, but current Titanium SDK set to 5.5.0.v20160904203801
      [INFO]  Forking correct SDK command: "/usr/local/bin/node" "/Users/hknoechel/.appcelerator/install/5.4.0/package/node_modules/titanium/lib/titanium.js" "build" "--sdk" "5.4.0.GA" "--no-banner" "--config-file" "/var/folders/s_/lmtv34b926j0m22fx95ppz980000gq/T/build-1473442005789.json" "--platform" "android" "--project-dir" "/Users/hknoechel/Documents/Apps/hyperloop-examples" "--log-level" "info" "--android-sdk" "/opt/android-sdk" "--target" "emulator"
      [ERROR] Unable to find any emulators
      Please create an Android emulator, then try again.




            • Assignee:
              hknoechel Hans Knöchel
            • Watchers:
              1 Start watching this issue


              • Created:

                Backbone Issue Sync

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

                  Git Integration