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

Android: Android SDK tools update to rev23 breaks build as it can't find tool zipalign

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 3.3.0
    • Component/s: Android
    • Environment:
    • Sprint:
      2014 Sprint 13 Tooling

      Description

      H5.Description:
      1. Update the Android SDK tools to rev23
      2. Create an classic/alloy app.
      3. Build it for android device/emulator.

      Actual Result:

      1. At the beginning of the logs we get error logs as it can't find the zipalign tool:

      [ERROR] :  Unable to find Android SDK tools: zipalign.
      [ERROR] :  You have an incomplete or out-of-date installation.
      [ERROR] :  Verify your Android SDK packages or reinstall the Android SDK by running 'titanium setup android' or manually downloading from http://appcelerator.com/android-sdk.
      

      2. The build process continues & fails giving following errors later:

      [INFO] :   Aligning zip file: null "-v" "4" "/Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/testapp/build/android/bin/testapp.apk" "/Users/lokeshchoudhary/Desktop/workspaces/comerica_workspcae/testapp/build/android/bin/testapp.apkz"
      /usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:185
              throw e;
                    ^
      TypeError: Bad argument
          at ChildProcess.spawn (child_process.js:915:24)
          at exports.spawn (child_process.js:715:9)
          at Object.run (/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.v20140625133319/node_modules/node-appc/lib/subprocess.js:47:14)
          at AndroidBuilder.<anonymous> (/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.v20140625133319/android/cli/commands/_build.js:4126:20)
          at /usr/local/lib/node_modules/titanium/lib/hook.js:256:13
          at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:232:13
          at async.eachSeries (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:130:20)
          at _asyncMap (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:226:9)
          at Object.mapSeries (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:216:23)
          at async.series (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:549:19)
      ---------------------------------------------
          at Object.run (/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.v20140625133319/node_modules/node-appc/lib/subprocess.js:59:8)
          at AndroidBuilder.<anonymous> (/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.v20140625133319/android/cli/commands/_build.js:4103:20)
          at /usr/local/lib/node_modules/titanium/lib/hook.js:256:13
          at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:232:13
          at async.eachSeries (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:130:20)
          at _asyncMap (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:226:9)
          at Object.mapSeries (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:216:23)
          at async.series (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:549:19)
      [ERROR] Application Installer abnormal process termination. Process exit value was 8
      

      Expected Result:

      1. We should not get any errors & the app should build successfully.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbarber Chris Barber
                Reporter:
                lchoudhary Lokesh Choudhary
                Reviewer:
                Tim Poulsen
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code