{ "id": "163120", "key": "TIMOB-23883", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2019-09-19T20:57:52.000+0000", "created": "2016-09-09T17:27:43.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "cli", "emulator" ], "versions": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "issuelinks": [], "assignee": null, "updated": "2019-09-19T20:57:52.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "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.\r\n\r\nSteps to reproduce:\r\n1. Create a new emulator through Android Studio (e.g. Nexus 5, API level 23)\r\n2. Check your environment with {{appc ti info}}\r\n3. Note the android warning (also typo in \"Uknown\"):\r\n{code}\r\n The Android emulator \"Nexus_5_API_23\" has a problem:\r\n Uknown error\r\n{code}\r\n4. Run a new android-project with {{appc run -p android}}\r\n\r\nExpected behavior: The CLI finds the Android emulator, starts the app\r\nActual behavior: An error log is thrown:\r\n{code}\r\n[ERROR] Unable to find any emulators\r\n\r\nPlease create an Android emulator, then try again.\r\n{code}\r\n\r\nI'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!\r\n\r\nFull log:\r\n{code}\r\nHans-Macbook-Pro:hyperloop-examples hknoechel$ appc run -p android\r\nAppcelerator Command-Line Interface, version 5.4.0\r\nCopyright (c) 2014-2016, Appcelerator, Inc. All Rights Reserved.\r\n\r\n[INFO] tiapp.xml set to 5.4.0.GA, but current Titanium SDK set to 5.5.0.v20160904203801\r\n[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\"\r\n\r\n[ERROR] Unable to find any emulators\r\n\r\nPlease create an Android emulator, then try again.\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Emulators created in Android Studio do not work", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "396023", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I think you have to create emulators in the android console and not android studio for it to work well with appc. [~msamah][~gmathews] can you verify this? If so, we probably should update our guide and say that you have to create emulators using android.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-09-13T16:38:26.000+0000", "updated": "2016-09-13T16:38:26.000+0000" }, { "id": "396065", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Both manage the AVD (Android Virtual Devices) from the same place. It should work.\r\nI myself use only Android emulators. I do not use Genymotion. \r\n\r\nThus, it's probably some configuration issues or environment.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-09-14T02:26:52.000+0000", "updated": "2016-09-14T02:27:10.000+0000" }, { "id": "396074", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I cannot reproduce this on Windows, emulators created by both AVD and Android Studio are found by the CLI and launch correctly. I will try on OSX.", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-09-14T05:37:32.000+0000", "updated": "2016-09-14T05:37:32.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }