Description
When 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.
[ERROR] Missing required Android SDK tools: zipalign, aapt, aidl, dx
[ERROR]
[ERROR] The Android SDK located at /Users/eharris/Library/Android/sdk has incomplete or out-of-date packages.
[ERROR]
[ERROR] Current installed Android SDK tools:
[ERROR] Android SDK Tools: 25.2.5
[ERROR] Android SDK Platform Tools: 25.0.6
[ERROR] Android SDK Build Tools: not installed
[ERROR]
[ERROR] Make sure you have the latest Android SDK Tools, Platform Tools, and Build Tools installed.
[ERROR]
[ERROR] You can also specify the exact location of these required tools by running:
[ERROR] ti config android.executables.zipalign "/path/to/android-sdk/zipalign"
[ERROR] ti config android.executables.aapt "/path/to/android-sdk/aapt"
[ERROR] ti config android.executables.aidl "/path/to/android-sdk/aidl"
[ERROR] ti config android.executables.dx "/path/to/android-sdk/dx"
[ERROR]
[ERROR] If you need to, run "titanium setup android" to reconfigure the Titanium Android settings.
Steps to reproduce
I ran into this while fixing TIMOB-24778, if you test this before that fix is available edit the package.json file under
<SDK>/android/
to match
"android build tools": ">=23 <=25.x",
Install Android SDK Build-tools@22.0.1
Build a project with appc run -p android -T device --build-only
Actual
Error message shown is confusing as it says tools are not installed, when they are but are just unsupported
Expect
Error message should match the reality
[~eharris], I remember you changed the error messaging via another ticket. Should we close this one?
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.
Please note that I changed the supported versions to test this
Closing as a dupe of TIMOB-26180 as that cleared up the messaging