{ "id": "171446", "key": "AC-5688", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "6", "description": "", "name": "Hold" }, "resolutiondate": "2018-06-19T11:20:16.000+0000", "created": "2018-04-03T11:31:15.000+0000", "labels": [ "android" ], "versions": [], "issuelinks": [ { "id": "57270", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "173207", "key": "TIMOB-26919", "fields": { "summary": "Android: Support d8 dexer.", "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": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-03-20T10:26:11.000+0000", "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" } }, "components": [], "description": "I have java 1.8 installed in my build path and use 7.0.2.GA SDK.\r\nI need to build android module.\r\n\r\nI cannot build for java 1.8 - java 1.7 does not support method references.\r\n\r\n{code}\r\nApi2.java:33: error: method references are not supported in -source 1.7\r\n[ERROR] .flatMap(ApiResponse::handleError)\r\n{code}\r\n\r\nPlease help how to use java 1.8 with your SDK and/or toolchain.\r\nThe same code built from Android Studio 3.0.1 with no problem. But the main app project is appcelerator's, I cannot use Android Studio.\r\n", "attachment": [], "flagged": false, "summary": "Need support for Java 1.8 in Studio/CLI: method references are not supported in -source 1.7", "creator": { "name": "sed76", "key": "sed76", "displayName": "Sergey Dmitriev", "active": true, "timeZone": "Europe/Moscow" }, "subtasks": [], "reporter": { "name": "sed76", "key": "sed76", "displayName": "Sergey Dmitriev", "active": true, "timeZone": "Europe/Moscow" }, "environment": "Appcelerator Command-Line Interface, version 7.0.2\r\nCopyright (c) 2014-2018, Appcelerator, Inc. All Rights Reserved.\r\n\r\n2018-4-3 14:07:04\r\n\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.13.3\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\n\r\nNode.js\r\n Node.js Version = 8.10.0\r\n npm Version = 5.6.0\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.14\r\n\r\nTitanium SDK\r\n SDK Version = 7.0.2.GA\r\n SDK Path = /Users/sed/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA\r\n Target Platform = android\r\n\r\nAdditional info:\r\n==============\r\n\r\nAndroid SDK tools 25.2.5\r\nAndroid SDK platform tools 27.0.1\r\nAndroid SDK build tools 26.0.2, 25.0.3, 24.0.3, 23.0.3, 21.1.2 are installed.\r\n\r\nAxway Appcelerator Studio, build: 5.0.0.201712081732", "comment": { "comments": [ { "id": "436249", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This was done on purpose. We currently only support Java 7 language features. We added Java 7 support as of Titanium 7.0.0. You can compile with JDK 8, but we purposely set up the Java compiler to build with Java 7, which is the {{-source 1.7}} argument you see in the log.\r\n\r\nThe reason we don't support the Java 8 language is because Google does not fully support Java 8 yet. See the link below. Some Java 8 features are supported on all Android OS versions, such as method references. But there are other Java 8 features that are only supported on Android 7.0 (aka: API Level 24) and higher... and this is the main problem that is best avoided.\r\nhttps://developer.android.com/studio/write/java8-support.html#supported_features\r\n\r\nAlso, the impression is that Android's Java 8 support is not fully debugged yet either...\r\nhttps://developer.android.com/studio/write/java8-support.html#disable\r\n\r\nJava 7 has the best support on Android at the moment. Especially since it's supported on all Android OS versions. So, the plan is to stick to Java 7 until the Java 8 situation on Android improves.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-03T18:42:57.000+0000", "updated": "2018-04-03T18:42:57.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }