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

Android: Build fails if SDK with JDK 9/10 fix is not selected in CLI & tiapp.xml (only if ran from CLI)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: Release 7.1.1
    • Component/s: Android
    • Labels:
      None
    • Environment:
    • Story Points:
      2
    • Sprint:
      2018 Sprint 07 Tooling

      Description

      I am not sure if this is an issue or its just to be like this due to the architecture of CLI & SDK.
      What I am seeing is if I do not have an SDK with the new JDK 9/10 detection fix in both the CLI & tiapp.xml the build fails.

      Steps to reproduce:

      A. SDK with jdk 9/10 fix selected in the CLI & 7.1.0.GA in tiapp.xml:
      1. Make sure you have CLI core 7.0.3-master.24 installed which has the jdk 9/10 fix.
      2. Create an app with SDK 7.1.0.GA (this will have sdk 7.1.0.GA in the tiapp.xml).
      3. Make sure you have the SDK with the jdk 9/10 selected in the CLI.
      4. Build for android.
      5. Build fails with:

      [INFO]  tiapp.xml <sdk-version> set to 7.1.0.GA, but current Titanium SDK set to 7.2.0.v20180328162916
      [INFO]  Forking correct SDK command: "/usr/local/bin/node" "/Users/lchoudhary/.appcelerator/install/7.0.3-master.24/package/node_modules/titanium/lib/titanium.js" "build" "--sdk" "7.1.0.GA" "--no-banner" "--config-file" "/var/folders/pk/k370szc955l_9w7hsb9nfvg00000gq/T/build-1522435392553.json" "--platform" "android" "--project-dir" "/Users/lchoudhary/Desktop/lokitest" "--log-level" "trace" "--android-sdk" "/Users/lchoudhary/Desktop/android-sdk-macosx" "--target" "emulator"
       
      [ERROR] JDK (Java Development Kit) not found.
      [ERROR] If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly set.
      [ERROR] The JDK can be downloaded and installed from http://appcelerator.com/jdk.
      

      B. 7.1.0.GA in selected in CLI & SDK with jdk 9/10 fix in the tiapp.xml:
      1. Make sure you have CLI core 7.0.3-master.24 installed which has the jdk 9/10 fix.
      2. Select 7.1.0.GA in CLI & have sdk with jdk9/10 fix in tiapp.xml.
      3. Build for android.
      4. Build fails with:

      [ERROR] JDK (Java Development Kit) not found.
      [ERROR] If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly set.
      [ERROR] The JDK can be downloaded and installed from http://appcelerator.com/jdk.
      

      Expected result:
      For A : Probably fail
      For B : Probably should not fail with JDK not found error.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code