{ "id": "162822", "key": "TIMOB-23826", "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": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-08-14T11:52:30.000+0000", "created": "2016-08-25T18:42:52.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-6.0.0" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [ { "id": "52545", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "160907", "key": "TIMOB-23483", "fields": { "summary": "Android N: Update Scons to run with JDK 8", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "54688", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "166921", "key": "TIMOB-24555", "fields": { "summary": "Android: Latest Android Tools breaks development with Titanium", "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": "53498", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "162807", "key": "AC-4386", "fields": { "summary": "I can not compile on OSX for Android", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "53497", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "163801", "key": "AC-4534", "fields": { "summary": "Android not lunching anymore by 24.0.0 rc1", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "53499", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "160067", "key": "TISTUD-8483", "fields": { "summary": "Cannot build for Android", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "53496", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "162967", "key": "TISTUD-8579", "fields": { "summary": "Android: Update link to Android tools", "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": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-08-25T09:55:27.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": "13103", "name": "CLI", "description": "Node-based command line interface" }, { "id": "10207", "name": "Tooling" } ], "description": "h5.Description\r\n\r\nWhen building with Android SDK Build-tools > 24.0 and Java < 1.8 the dexer step in the build process bombs out with the below, these build tools seem to require 1.8 [link|http://stackoverflow.com/questions/39116095/android-studio-buildtools-24-0-1-requires-java-1-8-or-above]\r\n\r\n{code}\r\n[ERROR] Failed to run dexer:\r\n[ERROR]\r\n[ERROR] java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0\r\n[ERROR] at java.lang.ClassLoader.defineClass1(Native Method)\r\n[ERROR] at java.lang.ClassLoader.defineClass(ClassLoader.java:800)\r\n[ERROR] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)\r\n[ERROR] at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)\r\n[ERROR] at java.net.URLClassLoader.access$100(URLClassLoader.java:71)\r\n[ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:361)\r\n[ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\r\n[ERROR] at java.security.AccessController.doPrivileged(Native Method)\r\n[ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\r\n[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\r\n[ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)\r\n[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\r\n[ERROR] at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)\r\n[ERROR] Exception in thread \"main\"\r\n{code}\r\n\r\n*WORKAROUND*\r\n\r\nInstall Java 1.8\r\n\r\nh5.Steps to reproduce\r\n\r\n# Install Android SDK Build-tools > 24.0 and a Java version < 1.7\r\n# Build for Android\r\n\r\nh5.Actual result\r\n\r\nBuild will fail with the error above\r\n\r\nh5.Expected result\r\n\r\nSome help for the user in clarifying what's wrong", "attachment": [], "flagged": false, "summary": "Android: Build fails using build tools higher than 24.0 and Java 1.7", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Windows 10 Pro\r\nAppc CLI: 6.0.0-31\r\nAppc NPM: 4.2.8-5\r\nTi SDK: 6.0.0.v20160825000249\r\nAndroid SDK Build-tools: 24.0.2\r\nAndroid SDK Platform-tools: 24.0.2\r\nAndroid SDK Tools: 25.1.7\r\nJava 1.7.0_80", "closedSprints": [ { "id": 799, "state": "closed", "name": "2017 Sprint 02 Tooling", "startDate": "2017-01-15T00:01:57.583Z", "endDate": "2017-01-29T00:01:00.000Z", "completeDate": "2017-01-30T21:11:44.577Z", "originBoardId": 199 } ], "comment": { "comments": [ { "id": "394454", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~eharris] I believe 24 is used for Android N, and I think we haven't announced support for build tools 24. Can you verify if you face the same issue on mac?\r\nI'll plan this accordingly for the titanium SDK release that supports Android N.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-26T03:02:35.000+0000", "updated": "2016-08-26T03:02:35.000+0000" }, { "id": "394456", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "If I'm not wrong, we just need to upgrade the java to 1.8 and need not do anything else.\r\n\r\nIn the future though, we might need to change our toolchain for building android using Jack.\r\nhttps://developer.android.com/guide/platform/j8-jack.html\r\n\r\nIn the mean time, it's not needed.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-08-26T03:20:04.000+0000", "updated": "2016-08-26T03:20:04.000+0000" }, { "id": "394516", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~cng] Yes this happens on mac also.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-08-26T17:58:10.000+0000", "updated": "2016-08-26T17:58:10.000+0000" }, { "id": "417039", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I'm not certain this is an issue once TIMOB-24555 is merged. I have been able to successfully build an Android app using build tools 25 + platform tools 25 + android tools 26 + android sdk 25 (7.1.1) using TIMOB-24555.\r\n\r\nOnce TIMOB-24555 is merged, we can re-test this and see if it's still valid.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-04-07T16:42:54.000+0000", "updated": "2017-04-07T16:42:54.000+0000" }, { "id": "423027", "author": { "name": "chmiiller", "key": "chmiiller", "displayName": "Carlos Henrique Zinato", "active": true, "timeZone": "America/Los_Angeles" }, "body": "For those having this problem, you can find the latest JDK here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html", "updateAuthor": { "name": "chmiiller", "key": "chmiiller", "displayName": "Carlos Henrique Zinato", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-28T09:45:22.000+0000", "updated": "2017-06-28T09:45:22.000+0000" }, { "id": "426610", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[#PR-9274|https://github.com/appcelerator/titanium_mobile/pull/9274] will change our versioning to require build-tools {{26.0}} and {{JDK 1.8}}", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-14T11:52:30.000+0000", "updated": "2017-08-14T11:52:30.000+0000" }, { "id": "427246", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified in 6.2.0.v20170824144806 and 7.0.0.v20170823165814\r\n\r\nWhen using Java 1.7 in SDK 6.2.0, when building for Android the CLI (appc and ti) will error out with the error below\r\n\r\n{code}\r\nappc run -p android -T device --build-only\r\nAppcelerator Command-Line Interface, version 6.2.2\r\nCopyright (c) 2014-2017, Appcelerator, Inc. All Rights Reserved.\r\n\r\n[ERROR] JDK version 1.7.0 detected, but only version >=1.8.x is supported\r\n{code}", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-08-25T09:55:07.000+0000", "updated": "2017-08-25T09:55:07.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }