{ "id": "174766", "key": "TIMOB-27781", "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:26:29.000+0000", "created": "2020-02-26T19:38:11.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "build", "gradle", "jdk", "regression" ], "versions": [ { "id": "20033", "name": "Release 9.0.0", "archived": false, "released": true, "releaseDate": "2020-03-18" } ], "issuelinks": [ { "id": "58233", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "174764", "key": "TIMOB-27780", "fields": { "summary": "Android: Hyperloop builds fail if JDK 12 or higher is installed", "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": "58316", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "174913", "key": "TIMOB-27850", "fields": { "summary": "Android: App/Module builds fail with JDK 14 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": "58234", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "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-16T01:20:25.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" } ], "description": "*Summary:*\r\nWhen building an app or module with Titanium 9.0.0, the build will fail if JDK 13 is installed.\r\n\r\nTitanium 8.3.x builds fine with JDK 13... except for Hyperloop builds: [TIMOB-27780]\r\n\r\n*Steps to reproduce:*\r\n# Install JDK 13.\r\n# Create a Titanium app project.\r\n# Build with Titanium 9.0.0 for Android.\r\n\r\n*Result:*\r\n{code}\r\n[ERROR] [GRADLE] FAILURE: Build failed with an exception.\r\n[ERROR] [GRADLE] \r\n[ERROR] [GRADLE] * Where:\r\n[ERROR] [GRADLE] Settings file '/Users/jquick2/Documents/Appcelerator_Studio_Workspace/kitchensink-v2/build/android/settings.gradle'\r\n[ERROR] [GRADLE] \r\n[ERROR] [GRADLE] * What went wrong:\r\n[ERROR] [GRADLE] Could not compile settings file '/Users/jquick2/Documents/Appcelerator_Studio_Workspace/kitchensink-v2/build/android/settings.gradle'.\r\n[ERROR] [GRADLE] > startup failed:\r\n[ERROR] [GRADLE] General error during semantic analysis: Unsupported class file major version 57\r\n[ERROR] [GRADLE] \r\n[ERROR] [GRADLE] java.lang.IllegalArgumentException: Unsupported class file major version 57\r\n[ERROR] [GRADLE] \tat groovyjarjarasm.asm.ClassReader.(ClassReader.java:184)\r\n[ERROR] [GRADLE] \tat groovyjarjarasm.asm.ClassReader.(ClassReader.java:166)\r\n[ERROR] [GRADLE] \tat groovyjarjarasm.asm.ClassReader.(ClassReader.java:152)\r\n[ERROR] [GRADLE] \tat groovyjarjarasm.asm.ClassReader.(ClassReader.java:273)\r\n{code}\r\n\r\n*Cause:*\r\nAs of Titanium 9.0.0, we now build with gradle. We're currently using gradle v5.4.1 which does not support JDK 13. We'll need to upgrade to gradle v6.0.x (released January 2020) which supports JDK 13.\r\nhttps://docs.gradle.org/6.0/release-notes.html#java-13\r\n\r\n*Note:*\r\nYou can have multiple JDK installations on Mac. You can list the JDK versions installed by entering the following at the command line.\r\n{code}\r\n/usr/libexec/java_home -V\r\n{code}\r\n\r\nYou can select which installed JDK version to use by entering the following at the command line. You'll need to set the {{}} to what's installed, which the above command line will list. The below can be set in your {{.bash_profile}} file.\r\n{code}\r\nexport JAVA_HOME=$(/usr/libexec/java_home -v )\r\n{code}\r\n\r\n*Work-Around:*\r\nDowngrade to JDK 12 or lower.\r\n(JDK 8 is the min version needed.)", "attachment": [ { "id": "67308", "filename": "ti.imagefactory_errors.rtf", "author": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "created": "2020-03-20T12:08:29.000+0000", "size": 13092, "mimeType": "text/rtf" } ], "flagged": false, "summary": "Android: App/Module builds fail with JDK 13 as of 9.0.0", "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": "454482", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (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-29T04:28:09.000+0000", "updated": "2020-02-29T05:12:52.000+0000" }, { "id": "454780", "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:08:41.000+0000", "updated": "2020-03-20T12:16:39.000+0000" }, { "id": "454781", "author": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "body": "*Test Environment*\r\nSDK Ver: 8.3.1.GA & 9.0.0.GA & 9.0.1 & 9.1.0\r\nOS Ver: 10.14.6\r\nAppc NPM: 5.0.0\r\nAppc CLI: 8.0.0\r\nDaemon Ver: 3.2.0\r\nTi CLI Ver: 5.2.2\r\nAlloy Ver: 1.14.6\r\nNode Ver: 10.17.0\r\nJava Ver: 1.8.0 & 12.0.2 & 13.0.2\r\nEmulator: ⇨ Android 10 (API 29)\r\n", "updateAuthor": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "created": "2020-03-20T12:20:46.000+0000", "updated": "2020-03-20T12:20:46.000+0000" }, { "id": "454788", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ssaddique], the module still builds fine, right?\r\n\r\nThe issue we are having as of 9.0.0 is that the Java compiler \"warnings\" are being reported via \"stderr\", which our CLI reports as errors. We don't have a good work-around for this at the moment since \"warnings\" are reported inconsistently via the different gradle tools.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-20T18:43:56.000+0000", "updated": "2020-03-20T18:43:56.000+0000" }, { "id": "454789", "author": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "body": "[~jquick] Yep, the module still builds fine. In light of this information, I can therefore pass this ticket and merge the PR's.", "updateAuthor": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "created": "2020-03-20T18:56:19.000+0000", "updated": "2020-03-20T18:56:19.000+0000" }, { "id": "454791", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ssaddique], thanks for the detailed investigation. That's what I like to see. :)\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-20T19:02:28.000+0000", "updated": "2020-03-20T19:02:28.000+0000" }, { "id": "455089", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with JDK 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:26:21.000+0000", "updated": "2020-04-10T22:26:21.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }