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

Android: Build fails if Java 1.6 is not installed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 4.1.0
    • Fix Version/s: Release 5.0.0
    • Component/s: Android, Tooling
    • Labels:
    • Environment:
    • Story Points:
      21
    • Sprint:
      2015 Sprint 17 SDK

      Description

      Description:

      1. On a clean machine setup appcelerator studio.
      2. Studio will download java 1.7.0_XX, node js & appc CLI.
      3. Login to studio & download android SDK from with in studio.
      4. Create an app & run it on android device/emulator.

      Actual Results:

      1. The build fails as it looks for java 1.6 & errors as it can't find it with the errors below:

      [INFO]  Encrypting JavaScript files: /Users/qetester/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/titanium_prep.macos "com.app.test1" "/Users/qetester/Documents/Appcelerator_Studio_Workspace/test1/build/android/assets" "alloy/CFG.js" "app.js" "alloy/backbone.js" "alloy/constants.js" "alloy/controllers/BaseController.js" "alloy/controllers/index.js" "alloy/styles/index.js" "alloy/sync/localStorage.js" "alloy/sync/properties.js" "alloy/sync/sql.js" "alloy/underscore.js" "alloy/widget.js" "alloy.js" "ti.cloud.js" "_app_props_.json"
      [ERROR] Failed to encrypt JavaScript files
      [ERROR] No Java runtime present, requesting install.
       
      TRACE  | titanium exited with exit code 1
      ERROR  | Error: ti run exited with error code 1
          at ChildProcess.<anonymous> (/Users/qetester/.appcelerator/install/4.0.2/package/node_modules/appc-cli-titanium/plugins/run.js:84:66)
          at ChildProcess.emit (events.js:98:17)
          at Process.ChildProcess._handle.onexit (child_process.js:820:12)
      

      2. We also get a dialog saying "This application needs java 6" & clicking on more info button on the dialog it takes us to the java 1.6 download page on apple's website.
      NOTE - Attached screenshot for reference.

      Expected Result:

      1. The build should succeed with java 1.7.0_X.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code