Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24779

CLI: Error message for too old build-tools is confusing

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Duplicate
    • Affects Version/s: Release 6.1.0
    • Fix Version/s: None
    • Component/s: Android, CLI
    • Labels:
      None
    • Environment:

      Ti SDK: 6.1.0.GA
      Appc CLI: 6.2.2
      Android SDK Build-tools: 22.0.1

      Description

      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",

      1. Install Android SDK Build-tools@22.0.1
      2. 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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                eharris Ewan Harris
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-10749
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration