Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17875] CLI: cannot build on Android if JDK 1.8 is installed

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2014-11-07T22:40:21.000+0000
Affected Version/sRelease 3.4.0
Fix Version/sRelease 3.4.1, Release 3.4.2, Release 3.5.0, Release 4.0.0
ComponentsCLI
Labelsqe-3.4.1
ReporterFederico Casali
AssigneePraveen Innamuri
Created2014-10-20T18:12:55.000+0000
Updated2014-11-21T18:37:56.000+0000

Description

Problem description

Cannot build a project on Android from CLI if JDK 1.8.0 is installed.

Steps to reproduce

Install JDK 1.8.0 (reproduced on MAC OS X Yosemite) 1. Create a new project 2. From CLI, go to the project folder root and build for Android.
ti build -p android -T device
Result: build process fails. Error message:
[ERROR] JDK version 1.8.0 detected, but only version <=1.7.x is supported

Comments

  1. Visalakshi Chidambaram 2014-10-21

    This issue is reproducible through studio also while packaging as well as running on an android emulator.
  2. Jason Priebe 2014-10-21

    Interesting that you see it in studio as well. I don't have any problems building for devices from within studio, but I get this problem when I use the CLI. I have Java 8 update 20 on OS X. The Compatibility Matrix (http://docs.appcelerator.com/titanium/3.0/#!/guide/Titanium_Compatibility_Matrix-section-29004837_TitaniumCompatibilityMatrix-JavaDevelopmentKit) indicates that JDK 8, latest revision is supported on OS X. Technically, there's a slightly newer version of JDK 8 (update 25). But I can't imagine that's the problem here.
  3. Lokesh Choudhary 2014-11-07

    I am seeing this failure too. I have java 1.8 and java 1.6 on yosemite Gives me error:
       [ERROR] JDK version 1.8.0 detected, but only version <=1.7.x is supported
       
    Environment: Appc Studio : 3.4.1.201410281743 Ti SDK : 3.4.1.v20141105104918 CLI : 3.4.1-alpha Alloy : 1.5.1 GA Code Processor : 1.1.1 MAC Yosemite : 10.10 Nexus 9 - Android 5.0
  4. Praveen Innamuri 2014-11-07

    Pushed fix to master and cherry-picked fix to 3_4_1 and 3_4_X branches.
  5. Lokesh Choudhary 2014-11-10

    Verified the fix. No failures are seen & app builds successfully while building from CLI if JDK 1.8 is installed. Closing. Environment: Appc Studio : 3.4.1.201410281743 Ti SDK : 3.4.1.v20141107144118, 3.4.2.v20141110100119, 3.5.0.v20141110100126 CLI : 3.4.1-alpha Alloy : 1.5.1 GA Code Processor : 1.1.1 MAC Yosemite : 10.10 Nexus 9 - Android 5.0

JSON Source