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

Android: Build should not proceed if the necessary android sdk tool is not found

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 3.3.0
    • Fix Version/s: Release 3.3.0, Release 3.4.0
    • Component/s: Android
    • Environment:

      Environment:
      Appc Studio : 3.3.0.201406231625
      Ti SDK : 3.3.0.v20140626115712
      Mac OSX : 10.8.5
      Alloy : 1.4.0-rc2
      CLI - 3.3.0-rc3
      Code Processor: 1.1.1
      Nexus 5 - android 4.4.4

    • Sprint:
      2014 Sprint 13 Tooling

      Description

      Description:

      1. This issue was noticed when the update to Android SDK tools to rev 23 broke build process.
      2. Create a classic/alloy app in studio.
      3. Build it for android device/emulator, with android sdk tools rev 23 installed & without the workaround or fix for https://jira.appcelerator.org/browse/TIMOB-17221.

      Actual Result:

      1. We get an error's below but build still continues.

      [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.
      

      later we get these errors:

      [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 Results:

      1. The build process should end/terminate at the first error's itself & not continue.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code