{ "id": "167581", "key": "TIMOB-24681", "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": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-05-16T17:13:27.000+0000", "created": "2017-05-11T22:23:37.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" }, { "id": "19333", "description": "Patch release for important items that did not make it into 6.0.3", "name": "Release 6.0.4", "archived": false, "released": true, "releaseDate": "2017-04-27" } ], "issuelinks": [ { "id": "54877", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "167589", "key": "TIMOB-24685", "fields": { "summary": "Android: Impossible to build against 6.0.4.GA ", "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": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-05-16T18:43:51.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": "*Steps to reproduce the behavior*\r\n1. Create an AVD in Android Studio via _Tools > Android > AVD Manager_ without the matching SDK being installed, e.g. AVD with Android 5.1 but no SDK 22 installed. This will download the required Google APIs System Image but not the SDK.\r\n2. Try to run an app on that emulator with {{appc run -p android -C -l trace}}\r\n\r\n*Actual behavior*\r\nThe build crashes with the following error:\r\n{code}\r\n2017-05-11T14:00:12.722Z | ERROR | Cannot read property 'name' of undefined\r\n2017-05-11T14:00:12.722Z | TRACE | TypeError: Cannot read property 'name' of undefined\r\n at /Users/jvennemann/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.v20170510131349/node_modules/node-titanium-sdk/lib/android.js:671:23\r\n{code}\r\n\r\n*Expected behavior*\r\nThe build succeeds and the app launches on the specified AVD.\r\n\r\n*Additional notes*\r\nThis also breaks {{appc info}} with the unhelpful error:\r\n{code}\r\n2017-05-11T22:19:03.961Z | ERROR | Error: titanium exited with exit code 1. re-run with -l trace to get detailed output\r\n at ChildProcess. (/Users/jvennemann/.appcelerator/install/6.2.0/package/lib/commands/info.js:45:23)\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: AVD detection fails if matching SDK is not installed", "creator": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "environment": "OS: Mac OS X 10.11.6\r\nNodeJS: 4.7.2\r\nTiSDK::6.0.4.GA / 6.1.0.v20170510131349", "closedSprints": [ { "id": 890, "state": "closed", "name": "2017 Sprint 10 Tooling", "startDate": "2017-05-08T00:27:34.394Z", "endDate": "2017-05-22T00:27:00.000Z", "completeDate": "2017-05-22T02:42:47.719Z", "originBoardId": 199 } ], "comment": { "comments": [ { "id": "419607", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~cbarber] It's the one we talked about last week. May include a match-validation of AVD -> SDK-Level, so it breaks earlier and informs the user about the issue.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-12T12:55:41.000+0000", "updated": "2017-05-12T12:55:41.000+0000" }, { "id": "419608", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "Should it really break? I would say building the app with SDK 23 and then running it on an AVD with API Level 22 to test how it works should be a valid use case. Why would i want to install the SDK if i only need the AVD to see how my app works on that specific API level.", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-12T13:21:52.000+0000", "updated": "2017-05-12T13:21:52.000+0000" }, { "id": "419615", "author": { "name": "stereoket", "key": "stereoket", "displayName": "Ketan Majmudar", "active": true, "timeZone": "Europe/London" }, "body": "I created an AVD with current tooling level (25) then it would allow me to build. the AVD that wasn't linked I deleted, but then it kept crashing (as I use genymotion) until I created an android AVD against the installed SDK (25 as mentioned). i'm back up and running now.\r\n", "updateAuthor": { "name": "stereoket", "key": "stereoket", "displayName": "Ketan Majmudar", "active": true, "timeZone": "Europe/London" }, "created": "2017-05-12T15:18:31.000+0000", "updated": "2017-05-12T15:18:31.000+0000" }, { "id": "419616", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "node-titanium-sdk PR: https://github.com/appcelerator/node-titanium-sdk/pull/3\r\nnode-titanium-sdk@0.2.3 published\r\n\r\nTiSDK master PR: https://github.com/appcelerator/titanium_mobile/pull/9057\r\nTiSDK 6_1_X PR: https://github.com/appcelerator/titanium_mobile/pull/9058\r\n\r\nTo test, open your Android SDK folder, then rename the {{addons}} and {{platforms}} directories so that Titanium can't find them, then run {{ti info -t android}}.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-05-12T15:27:06.000+0000", "updated": "2017-05-12T17:28:30.000+0000" }, { "id": "419622", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "LGTM. [~jvennemann] to confirm.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-12T18:53:15.000+0000", "updated": "2017-05-12T18:53:15.000+0000" }, { "id": "419650", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "Looks good! Did a quick check, no crashes anymore!", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-13T15:39:49.000+0000", "updated": "2017-05-13T15:39:49.000+0000" }, { "id": "419766", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR passed for backport.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-16T01:56:44.000+0000", "updated": "2017-05-16T01:56:44.000+0000" }, { "id": "419794", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Backport PR merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-16T17:13:27.000+0000", "updated": "2017-05-16T17:13:27.000+0000" }, { "id": "419804", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Master PR merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-16T17:56:04.000+0000", "updated": "2017-05-16T17:56:04.000+0000" }, { "id": "419811", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix in 6.1.0.v20170516103606.\r\n\r\nAVD detection does not fail & avd launches successfully if matching SDK is not installed.\r\nClosing.\r\n\r\nStudio Ver: 4.9.0.201705110256\r\nSDK Ver: 6.1.0.v20170516103606\r\nOS Ver: 10.12.3\r\nXcode Ver: Xcode 8.3.2\r\nAppc NPM: 4.2.9\r\nAppc CLI: 6.2.1\r\nTi CLI Ver: 5.0.13\r\nAlloy Ver: 1.9.11\r\nNode Ver: 6.10.1\r\nJava Ver: 1.8.0_101\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-16T18:43:35.000+0000", "updated": "2017-05-16T18:43:35.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }