{ "id": "168115", "key": "TIMOB-24779", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2018-08-29T18:39:40.000+0000", "created": "2017-06-06T09:56:11.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "issuelinks": [ { "id": "56757", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "171877", "key": "TIMOB-26180", "fields": { "summary": "Android: CLI does not provide useful information when a selected buildTools version is not installed", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "55085", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "168137", "key": "TIMOB-24787", "fields": { "summary": "CLI: \"Invalid Version: .DS_Store.0\" Is Shown when using old build tools to build an Android project", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-08-29T18:39:40.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" }, { "id": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "h5.Description\r\n\r\nWhen building with a Android SDK Build-tools version that is too old, the error message is confusing (at least to me). I would expect a warning that my version is too old, not that I have tools missing.\r\n\r\n{code}\r\n[ERROR] Missing required Android SDK tools: zipalign, aapt, aidl, dx\r\n[ERROR]\r\n[ERROR] The Android SDK located at /Users/eharris/Library/Android/sdk has incomplete or out-of-date packages.\r\n[ERROR]\r\n[ERROR] Current installed Android SDK tools:\r\n[ERROR] Android SDK Tools: 25.2.5\r\n[ERROR] Android SDK Platform Tools: 25.0.6\r\n[ERROR] Android SDK Build Tools: not installed\r\n[ERROR]\r\n[ERROR] Make sure you have the latest Android SDK Tools, Platform Tools, and Build Tools installed.\r\n[ERROR]\r\n[ERROR] You can also specify the exact location of these required tools by running:\r\n[ERROR] ti config android.executables.zipalign \"/path/to/android-sdk/zipalign\"\r\n[ERROR] ti config android.executables.aapt \"/path/to/android-sdk/aapt\"\r\n[ERROR] ti config android.executables.aidl \"/path/to/android-sdk/aidl\"\r\n[ERROR] ti config android.executables.dx \"/path/to/android-sdk/dx\"\r\n[ERROR]\r\n[ERROR] If you need to, run \"titanium setup android\" to reconfigure the Titanium Android settings.\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\nI ran into this while fixing TIMOB-24778, if you test this before that fix is available edit the package.json file under {{/android/}} to match {{\"android build tools\": \">=23 <=25.x\",}}\r\n\r\n# Install Android SDK Build-tools@22.0.1\r\n# Build a project with appc run -p android -T device --build-only\r\n\r\n\r\nh5.Actual\r\n\r\nError message shown is confusing as it says tools are not installed, when they are but are just unsupported\r\n\r\nh5.Expect \r\n\r\nError message should match the reality", "attachment": [], "flagged": false, "summary": "CLI: Error message for too old build-tools is confusing", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Ti SDK: 6.1.0.GA \r\nAppc CLI: 6.2.2 \r\nAndroid SDK Build-tools: 22.0.1", "comment": { "comments": [ { "id": "441160", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~eharris], I remember you changed the error messaging via another ticket. Should we close this one?", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-28T17:19:25.000+0000", "updated": "2018-08-29T17:54:25.000+0000" }, { "id": "441180", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Yeah I'm happy to close this, when using an unsupported set of tools on 7.5.0 it now logs the below which to me is a bit clearer.\r\n\r\n{code}\r\n ✕ Android Build Tools 27.0.2 are not supported by Titanium\r\n Current installed Android SDK tools:\r\n Android SDK Tools: 26.1.1 (Supported: <=26.x)\r\n Android SDK Platform Tools: 28.0.0 (Supported: 27.x)\r\n Android SDK Build Tools: 27.0.2 (Supported: >=28.x <=29.x)\r\n\r\n Make sure you have the latest Android SDK Tools, Platform Tools, and Build Tools installed.\r\n{code}\r\n\r\nPlease note that I changed the supported versions to test this", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-08-29T10:47:15.000+0000", "updated": "2018-08-29T10:47:15.000+0000" }, { "id": "441200", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Closing as a dupe of TIMOB-26180 as that cleared up the messaging ", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-08-29T18:39:40.000+0000", "updated": "2018-08-29T18:39:40.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }