New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AIR 33 doesn't support Java 8 features for Android extensions #84
Comments
FYI I think we have a fix or this - needs to be worked into the proper workflow, but we can look at adding the appropriate command line options and updating the other tools so that we support this. |
Hmm.. looks more complex than we first thought. We've got the workflow going without any errors from any of the Android tools but when we test this, it's throwing a bootstrap error. Needs further investigation... |
Updating other build tools within the SDK now allows us to use latest dex format which supports these Java 8 features - lambda test case is working. Will be included in the next release.. |
Fixed in 33.0.2.281 which is now available from https://airsdk.harman.com/download |
For me now it works fine with AIR 33.0.2.281. Java 8 labmda feature works. A bit later will test with much more complex cases. |
Problem Description
Android application cannot packaged if it use ANEs with Java 8 features such as lambda expressions, annotation etc.
It has been tested with different Windows 8.1/10 PCs for packaging with latests AIR 33.0.1.220 and AIR 33.0.1.228. For armv7 and armv8 build targets. Different 64-bit Java 8 versions was tried.
Compile options used in gradle for Android Studio project:
The same problem in all cases.
Patching adt (mentioned here #48 ) doesn't help.
Related issue: #48
Steps to Reproduce
Create Java ANE for Android that uses some of Java 8 features. Lamda expressions for example in my case. Build ANE. Try to package Android application with apk-captive-runtime target.
Application example with sources for app and ANE with build scripts attached.
java8_ane.zip
Actual Result:
Application cannot be packaged. Got error:
Expected Result:
Application will be packaged with Java 8 features support .
Known Workarounds
none
The text was updated successfully, but these errors were encountered: