{ "id": "170287", "key": "DAEMON-129", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12519", "key": "DAEMON", "name": "Appcelerator Daemon" }, "fixVersions": [ { "id": "18407", "description": "", "name": "Appc Daemon 1.0.0", "archived": false, "released": true, "releaseDate": "2017-12-05" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-11-22T20:03:39.000+0000", "created": "2017-11-13T11:58:46.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [ { "id": "56148", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "170331", "key": "DAEMON-148", "fields": { "summary": "Android emulators missing target, api-level and sdk-version information", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "56173", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "170428", "key": "TISTUD-8922", "fields": { "summary": "Unable to see any android devices or emulators on studio 5.0.0.201711210649", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2017-11-23T10:51:31.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "15622", "name": "appcd-plugin-android" } ], "description": "To get the Android emulator's target, api level, and sdk name, we need to pass in an SDK for it to pull those bits of info. The problem is there could be more than one SDK. The Android plugin needs to select the best SDK starting with the one in specified in the config, then pass it into {{getEmulators()}}.", "attachment": [ { "id": "63678", "filename": "appcd_master44_systeminfo1.json", "author": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-11-23T01:28:10.000+0000", "size": 271459, "mimeType": "application/json" }, { "id": "63679", "filename": "appcd_mater44_dump.json", "author": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-11-23T01:29:00.000+0000", "size": 1648970, "mimeType": "application/json" } ], "flagged": false, "summary": "Android Plugin: Populate emulator target, api level, and sdk using default Android SDK", "creator": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "environment": null, "closedSprints": [ { "id": 969, "state": "closed", "name": "2017 Sprint 23 Tooling", "startDate": "2017-11-05T16:36:50.292Z", "endDate": "2017-11-19T16:36:00.000Z", "completeDate": "2017-11-20T18:58:45.002Z", "originBoardId": 219 }, { "id": 976, "state": "closed", "name": "2017 Sprint 24 Tooling", "startDate": "2017-11-19T19:00:51.738Z", "endDate": "2017-12-03T19:00:00.000Z", "completeDate": "2017-12-04T23:20:34.438Z", "originBoardId": 219 } ], "comment": { "comments": [ { "id": "430910", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Androidlib: https://github.com/appcelerator/androidlib/pull/14\r\nappc-daemon: https://github.com/appcelerator/appc-daemon/pull/159", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-11-17T13:17:19.000+0000", "updated": "2017-11-17T13:17:19.000+0000" }, { "id": "431100", "author": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Since I'm blocked by DAEMON-167 so I asked [~cbarber] to provide the system-info with the latest daemon( 7.0.0-master.34). I'm still seeing the same issue where Android emulators are missing the target,sdkversion and apilevel values.\r\n\r\nAs I mentioned here DAEMON-148, {{targets}} also missing at the android root level.\r\n\r\nHere is the system-info:\r\nhttps://gist.githubusercontent.com/cb1kenobi/6cb5e2de3cda28c25fdd1942a118ba55/raw/518bcdbf45502249ec63670025f4c1c5bb39e1c2/sysinfo.json", "updateAuthor": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-11-21T09:17:09.000+0000", "updated": "2017-11-21T11:04:03.000+0000" }, { "id": "431154", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~kkolipaka] To provide the target, sdk-version and api-level values we need 2 pieces of data.\r\n\r\n- The systemImage to exist in the systemImages object of an SDK info\r\n- The sdk property of that systemImage to match the sdk property of an platform within the platforms array of and SDK info\r\n\r\nThis matches the same behaviour of ti info\r\n\r\nIn Chris' info he has no systemImage values, so we're unable to lookup the info, hence the properties stay as null. \r\n\r\nHere's my info for a Windows machine (side note I just found a bug that on Windows this information is not actually populated by titanium) https://gist.github.com/ewanharris/056bf5e02e69779993b30948f051b78a\r\n\r\n\r\nBetween the main and mainAfterDelete I deleted my platforms/android-25 folder. When the scan reran it was unable to find a platform matching the SDK level in android-25/google_apis/x86, so the data stayed null. The titanium info never populates because of a bug in node-titanium-sdk, which I'll file a ticket for shortly\r\n\r\n", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-11-22T08:06:56.000+0000", "updated": "2017-11-22T08:06:56.000+0000" }, { "id": "431164", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~kkolipaka] Sorry I just realised the missing targets at android root comment you made, I made a PR here for it. https://github.com/appcelerator/appc-daemon/pull/184\r\n\r\nHere's a diff of the two outputs (daemon on left, ti info on right) https://www.diffchecker.com/LaX19v13. There's some bits missing, supported flag on platforms and addons and some vendor info on addons, is there anything you require that's missing?", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-11-22T15:47:15.000+0000", "updated": "2017-11-22T15:47:15.000+0000" }, { "id": "431166", "author": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Thanks for that. We would need *based-on*, *api-level*, *android-version* values. And, Studio is not using Vendor info and add-on.\r\n\r\n\r\nhttps://github.com/appcelerator/titanium_studio/blob/e2df52e82a128f7d0427f195264512b49c2eca16/plugins/com.appcelerator.titanium.android.core/src/com/appcelerator/titanium/android/core/DaemonAndroidSDKLocator.java#L521", "updateAuthor": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-11-22T16:03:50.000+0000", "updated": "2017-11-22T16:05:52.000+0000" }, { "id": "431194", "author": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I can't see targets for android with the latest daemon. I'm on 7.0.0-master.44 [^appcd_master44_systeminfo1.json] \r\n [^appcd_mater44_dump.json] ", "updateAuthor": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-11-23T01:29:16.000+0000", "updated": "2017-11-23T01:29:16.000+0000" }, { "id": "431204", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~kkolipaka] Looking at the log the previous version of the daemon in cli 7.0.0-master.40 is still running, if you install the latest appc npm package {{\\[sudo\\] npm i appcelerator@4.2.11-4 -g}} it will stop the daemon before installing/selecting a core.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-11-23T10:12:38.000+0000", "updated": "2017-11-23T10:12:38.000+0000" }, { "id": "431207", "author": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "body": "That's a problem! I was expecting {{appc use 7.0.0-master.44}} will stop the daemon. That didn't happen.\r\nhttps://github.com/appcelerator/appc-install/pull/89\r\n\r\n", "updateAuthor": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-11-23T10:29:44.000+0000", "updated": "2017-11-23T10:29:44.000+0000" }, { "id": "431209", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "That only got published in the last couple days, as 4.2.11-4, from the logs it looks like you have 4.2.11-2", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-11-23T10:51:31.000+0000", "updated": "2017-11-23T10:51:31.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }