Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-7819

Cannot build for Android on Yosemite/El Capitan due to missing JDK6

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      Yosemite 10.10.5 (clean install)
      Studio 4.3.3.201510212245
      Studio installs all (cli, jdk, node)

    • Sprint:
      To Be Scheduled

      Description

      Cannot build for Android on Yosemite/El Capitan due to missing JDK6

      I took a clean install of Yosemite and installed Studio, which installed jdk7
      Then i let Studio install the Android SDK
      I created a new Hello World app in Studio and tried to build on Genymotion Android emulator

      Then i saw the following error in Studio Console

      [ERROR] Application Installer abnormal process termination. Process exit value was 1
      [ERROR] : Titanium requires JDK 1.6 when building on Mac OS X.
      [ERROR] : You can download it from http://appcelerator.com/jdk-osx
      [ERROR] : If you still see this message, then you may need to set the JAVA_HOME to help Titanium locate the JDK.
      [ERROR] : To see which JDKs Titanium finds, run "appc ti info --types jdk --output json".
      TRACE | titanium exited with exit code 1
      ERROR | Error: ti run exited with error code 1
      at ChildProcess.<anonymous> (/Users/leorbrenman/.appcelerator/install/5.0.4/package/node_modules/appc-cli-titanium/plugins/run.js:92:66)
      at ChildProcess.emit (events.js:110:17)
      at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
      TRACE | Sending exit signal to titanium process: 4214

      I installed JDK 6 for Yosemite and the problem went away

      I hope that we can install everything we need during Studio install as this can lead to a bad user experience

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pinnamuri Praveen Innamuri (Inactive)
                Reporter:
                lbrenman Leor Brenman
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: