{ "id": "174913", "key": "TIMOB-27850", "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": "21018", "name": "Release 9.0.2", "archived": false, "released": true, "releaseDate": "2020-05-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-05-04T23:52:00.000+0000", "created": "2020-04-16T01:04:57.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "build", "gradle", "jdk" ], "versions": [ { "id": "20033", "name": "Release 9.0.0", "archived": false, "released": true, "releaseDate": "2020-03-18" } ], "issuelinks": [ { "id": "58316", "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 } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-05-04T23:52:00.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 14 is installed.\r\n\r\nTitanium 8.3.x builds fine with JDK 14... except for Hyperloop builds: [TIMOB-27780]\r\n\r\n*Steps to reproduce:*\r\n# Install JDK 14.\r\n# Create a Titanium app project.\r\n# Build with Titanium 9.0.1 for Android. (9.0.1 supports JDK 13.)\r\n\r\n*Result:*\r\n{code}\r\n[ERROR] [GRADLE] \r\n[ERROR] [GRADLE] FAILURE: Build failed with an exception.\r\n[ERROR] [GRADLE] \r\n[ERROR] [GRADLE] * What went wrong:\r\n[ERROR] [GRADLE] Could not initialize class org.codehaus.groovy.runtime.InvokerHelper\r\n[ERROR] [GRADLE] \r\n[ERROR] [GRADLE] * Try:\r\n[ERROR] [GRADLE] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.\r\n[ERROR] [GRADLE] \r\n[ERROR] [GRADLE] * Get more help at https://help.gradle.org\r\n[ERROR] [GRADLE] \r\n[ERROR] [GRADLE] BUILD FAILED in 597ms\r\n[ERROR] \"gradlew\" tool returned exit code: 1\r\n{code}\r\n\r\n*Cause:*\r\nAs of Titanium 9.0.0, we now build with gradle.\r\nWe need to upgrade gradle to v6.3.0 which recently added JDK 14 support.\r\nhttps://docs.gradle.org/6.3/release-notes.html\r\n\r\n*To-Do:*\r\nIn folder {{titanium_mobile/android}}, execute below command line to upgrade gradle wrapper files.\r\n{code}\r\n./gradlew wrapper --distribution-type all --gradle-version 6.3\r\n{code}\r\n\r\nWe should also update our {{com.android.tools.build:gradle}} tool to version {{3.6.2}} for files...\r\nhttps://github.com/appcelerator/titanium_mobile/blob/master/android/build.gradle\r\nhttps://github.com/appcelerator/titanium_mobile/blob/master/android/templates/build/root.build.gradle\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 13 for Titanium 9.0.1.\r\nDowngrade to JDK 12 for Titanium 9.0.0. (See [TIMOB-27781])\r\n(JDK 8 is the min version needed.)\r\n", "attachment": [], "flagged": false, "summary": "Android: App/Module builds fail with JDK 14 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": 1192, "state": "closed", "name": "2020 Sprint 8", "startDate": "2020-04-10T18:08:36.092Z", "endDate": "2020-04-24T18:08:00.000Z", "completeDate": "2020-04-24T16:23:30.466Z", "originBoardId": 114 }, { "id": 1194, "state": "closed", "name": "2020 Sprint 9", "startDate": "2020-04-24T17:09:51.572Z", "endDate": "2020-05-08T17:09:00.000Z", "completeDate": "2020-05-08T15:40:07.869Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "455155", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/11636\r\nPR (9.0.x): https://github.com/appcelerator/titanium_mobile/pull/11637\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-16T04:07:14.000+0000", "updated": "2020-04-16T04:07:14.000+0000" }, { "id": "455263", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed. App and module builds fine with different java versions(11,13,14)", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-28T00:20:59.000+0000", "updated": "2020-04-28T00:20:59.000+0000" }, { "id": "455264", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Waiting for Jenkins build on master.", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-28T00:21:18.000+0000", "updated": "2020-04-28T00:21:18.000+0000" }, { "id": "455302", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-04-29T15:35:04.000+0000", "updated": "2020-04-29T15:35:04.000+0000" }, { "id": "455351", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nMac OS: 10.15.4\r\nSDK: 9.0.2.v20200504063604, 9.1.0.v20200504090422\r\nAppc CLI: 8.0.0\r\nJDK: 11.0.6, 13.0.2, 14.0.1\r\nNode: 10.17.0\r\nDevice: Pixel3(v10.0) emulator", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-05-04T23:52:00.000+0000", "updated": "2020-05-04T23:52:00.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }