{ "id": "151801", "key": "TIMOB-19685", "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": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-10-07T22:41:45.000+0000", "created": "2015-10-07T18:16:22.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2015-10-14T18:06:59.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": "h5.Description:\r\n1. Create & build an android app from CLI/Studio using 5.1.0.v2015100622295.\r\n\r\nh5.Actual Results:\r\n1. The build fails with error:\r\n{code}\r\n[ERROR] Unable to find a suitable installed Android SDK that is >=14 and <=23\r\n{code}\r\n2. Looking at the package.json in the SDK we see {code}\"android sdk\": \"23\"{code}, which is high limiting the required android SDK to 23.\r\n\r\nh5.Expected Results:\r\n1. The android build should be successful even with no android 6.0 (API 23) SDK installed.\r\n", "attachment": [], "flagged": false, "summary": "Android: Build fails with SDK 5.1.0.v2015100622295 if android 6.0(API 23) is not installed", "creator": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Environment:\r\nAppc Studio : 4.3.1.201509302304\r\nTi SDK : 5.1.0.v2015100622295\r\nTi CLI : 5.0.5\r\nAlloy : 1.7.13\r\nMAC Yosemite : 10.10.4\r\nAppc NPM : 4.2.1-1\r\nAppc CLI : 5.1.0-28\r\nNode: v0.10.37\r\nNexus 5 - Android 5.1.1", "closedSprints": [ { "id": 502, "state": "closed", "name": "2015 Sprint 20 Tooling", "startDate": "2015-09-28T16:01:48.429Z", "endDate": "2015-10-10T01:01:00.000Z", "completeDate": "2015-10-12T21:13:39.920Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "366172", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Android SDK API 23 is required to build Android apps. The error message is not clear and I have fixed it.\r\n\r\nPR: https://github.com/appcelerator/titanium_mobile/pull/7277", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-10-07T22:40:47.000+0000", "updated": "2015-10-07T22:40:47.000+0000" }, { "id": "366805", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\nWe see the below error messsage if android API 23 is not installed with better message:\r\n{code}\r\n[ERROR] : No valid Android SDK targets found.\r\n[ERROR] : Please download an Android SDK target API level 23 or newer from the Android SDK Manager and try again.\r\nTRACE | titanium exited with exit code 1\r\nERROR | Error: ti run exited with error code 1\r\n at ChildProcess. (/Users/lokeshchoudhary/.appcelerator/install/5.1.0-38/package/node_modules/appc-cli-titanium/plugins/run.js:92:66)\r\n at ChildProcess.emit (events.js:98:17)\r\n at Process.ChildProcess._handle.onexit (child_process.js:820:12)\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 1\r\n{code}\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.3.1.201509302304\r\nTi SDK : 5.1.0.v20151014101225\r\nTi CLI : 5.0.5\r\nAlloy : 1.7.16\r\nMAC Yosemite : 10.10.5\r\nAppc NPM : 4.2.1-1\r\nAppc CLI : 5.1.0-38\r\nNode: v0.10.37\r\nNexus 5 - Android 6.0", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-14T18:06:30.000+0000", "updated": "2015-10-14T18:06:30.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }