{ "id": "174764", "key": "TIMOB-27780", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "20949", "name": "Release 9.0.1", "archived": false, "released": true, "releaseDate": "2020-04-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-04-10T22:27:18.000+0000", "created": "2020-02-26T04:28:28.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "build", "hyperloop", "jdk" ], "versions": [], "issuelinks": [ { "id": "58233", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "174766", "key": "TIMOB-27781", "fields": { "summary": "Android: App/Module builds fail with JDK 13 as of 9.0.0", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "58232", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "174763", "key": "TIMOB-27778", "fields": { "summary": "Android: Update gradle build tools to 3.6.x", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-04-10T22:27:18.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" }, { "id": "13715", "name": "Hyperloop", "description": "Hyperloop project" } ], "description": "*Summary:*\r\nIf you have JDK 12 or higher installed on your machine, then Titanium apps using the Hyperloop module will fail to build.\r\n\r\n*Steps to reproduce:*\r\n# Install JDK 12 or higher on your machine.\r\n# Build [hyperloop-example|https://github.com/appcelerator/hyperloop-examples] for Android.\r\n# Notice the build *fails* with the following error message.\r\n\r\n{code}\r\n[ERROR] hyperloop:generateMetabase: Failed to generated metabase: warning: [options] bootstrap class path not set in conjunction with -source 6\r\nerror: Source option 6 is no longer supported. Use 7 or later.\r\nerror: Target option 6 is no longer supported. Use 7 or later.\r\n{code}\r\n\r\n*Cause:*\r\nAs of JDK 12, Oracle has dropped support for the Java 6 language.\r\nhttps://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8028563\r\n\r\nHyperloop currently hardcodes its usage of the {{javac}} command line tool during the build to Java 1.6, which is why it fails when using the newest JDK.\r\n[android/hooks/metabase/metabase.js#L41|https://github.com/appcelerator/hyperloop.next/blob/24feb99f719da5e3df279452526638d46fa0043a/android/hooks/metabase/metabase.js#L41]\r\n\r\n*Solution:*\r\nUpdate {{javac}} usage to use Java 1.8 instead.\r\n\r\n*Note:*\r\nFor JDK 13 support, we'll likely need to update Titanium's gradle template to 6.x.x as well, which means updating our Android build tools to 3.6.x via [TIMOB-27778].\r\n", "attachment": [], "flagged": false, "summary": "Android: Hyperloop builds fail if JDK 12 or higher is installed", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1181, "state": "closed", "name": "2020 Sprint 5", "startDate": "2020-03-02T18:45:02.513Z", "endDate": "2020-03-13T18:45:00.000Z", "completeDate": "2020-03-13T16:42:04.632Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "454480", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (hyperloop.next): https://github.com/appcelerator/hyperloop.next/pull/336\r\nPR (master): https://github.com/appcelerator/titanium_mobile/pull/11507\r\nPR (9.0.x): https://github.com/appcelerator/titanium_mobile/pull/11510\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-02-29T03:58:57.000+0000", "updated": "2020-03-02T23:55:37.000+0000" }, { "id": "454783", "author": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "updateAuthor": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "created": "2020-03-20T12:23:30.000+0000", "updated": "2020-03-20T12:23:30.000+0000" }, { "id": "455090", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with NDK 13.0.2 & SDK 9.0.1.v20200409133209.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-10T22:27:13.000+0000", "updated": "2020-04-10T22:27:13.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }