[TIMOB-23176] Android: AVDs created in Android Studio work from there but not via Titanium
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2019-10-03T18:27:24.000+0000 |
Affected Version/s | Release 5.2.2 |
Fix Version/s | n/a |
Components | Android, Tooling |
Labels | cb-tooling |
Reporter | Fokke Zandbergen |
Assignee | Chris Barber |
Created | 2016-04-08T15:06:37.000+0000 |
Updated | 2019-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
File | Date | Size |
---|---|---|
Screen Shot 2016-04-08 at 17.01.44.png | 2016-04-08T15:08:34.000+0000 | 138637 |
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?
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.