[TIMOB-17875] CLI: cannot build on Android if JDK 1.8 is installed
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-11-07T22:40:21.000+0000 |
Affected Version/s | Release 3.4.0 |
Fix Version/s | Release 3.4.1, Release 3.4.2, Release 3.5.0, Release 4.0.0 |
Components | CLI |
Labels | qe-3.4.1 |
Reporter | Federico Casali |
Assignee | Praveen Innamuri |
Created | 2014-10-20T18:12:55.000+0000 |
Updated | 2014-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
This issue is reproducible through studio also while packaging as well as running on an android emulator.
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.
I am seeing this failure too. I have java 1.8 and java 1.6 on yosemite Gives me error:
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
Pushed fix to master and cherry-picked fix to 3_4_1 and 3_4_X branches.
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