Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23176] Android: AVDs created in Android Studio work from there but not via Titanium

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2019-10-03T18:27:24.000+0000
Affected Version/sRelease 5.2.2
Fix Version/sn/a
ComponentsAndroid, Tooling
Labelscb-tooling
ReporterFokke Zandbergen
AssigneeChris Barber
Created2016-04-08T15:06:37.000+0000
Updated2019-10-03T18:27:24.000+0000

Description

Android Studio 2 is has a much better developer experience for keeping the SDK/NDK up to date and creating AVDs based on actual devices. However, when I create an AVD in Android Studio I can successfully launch it from there, but they are not visible in Appcelerator Studio and when I run ti info -t android I get:
  !  The Android emulator "Nexus_5_API_23" has a problem:
     Uknown error

  !  The Android emulator "Nexus_5X_API_22" has a problem:
     Google Nexus 5X no longer exists as a device

  !  The Android emulator "Nexus_5X_API_23" has a problem:
     Google Nexus 5X no longer exists as a device

  !  The Android emulator "Nexus_5X_API_23_2" has a problem:
     Google Nexus 5X no longer exists as a device
The same errors (of course) show when I run android list directly. When I open the stand-alone AVD manager via android avd the AVDs are listed but cannot be started. When I open _Edit_ them it displays an error _No device selected_ and _CPU/ABI_ has _No system images installed for this target._ Once I've started an AVD via Android Studio ti info -t android (and Appcelerator Studio) will show the emulator as a connected device:
Connected Android Devices
Android SDK built for x86
  ID                          = emulator-5554
  State                       = device
  SDK Version                 = 6.0 (android-23)
  ABIs                        = x86,
I can then successfully build to this emulator.

Attachments

FileDateSize
Screen Shot 2016-04-08 at 17.01.44.png2016-04-08T15:08:34.000+0000138637

Comments

  1. Fokke Zandbergen 2016-05-03

    I got this working after selecting another hardware profile (Nexus 5 instead of 5x) when creating the AVD. Something must be wrong with the other hardware profile. Could some one try to see if this is something unique to my environment or an Android Studio problem still?
  2. Dejan Levec 2016-07-07

    android CLI tools which is used by Titanium seems to be deprecated as per Android Studio documentation, and doesn't work with emulators created via newer versions of Android Studio.

JSON Source