Skip to content

Compilation Failure with ANE androidx.core Version 2.00 (Release v3.0.0) Using AIR SDK 51.1 #36

@Policy56

Description

@Policy56

Compilation Failure with ANE androidx.core Version 2.00 (Release v3.0.0) Using AIR SDK 51.1.3.3

Description

When using the ANE androidx.core version 2.00 (from release v3.0.0) for an AS3-Flex project, I encounter a compilation error.

The error occurs when compiling the project with Java JDK versions 17 and 21, using the AIR SDK version 51.1.3.3. Here are the logs:

[java] Executing '********************\tools\hudson.model.JDK\JDK_21\jdk-21.0.5+11\bin\java.exe' with arguments:
[java] '-Xmx4096m'
[java] '-jar'
[java] '********************\Flex_4.16.1_AIR_51.1\lib\adt.jar'
[java] '-package'
[java] '-target'
[java] 'apk-captive-runtime'
[java] '-storetype'
[java] 'pkcs12'
[java] '-keystore'
[java] '********************.p12'
[java] '-storepass'
[java] '********************'
[java] 'D:\********************/bin/releaseProject/Android/********************_516.0.3-SNAPSHOT.apk'
[java] '********************-app.xml'
[java] '********************.swf'
[java] 'Assets.car'
[java] 'Default-414w-896h@3x~iphone.png'
[java] '[email protected]'
[java] 'Default-812h@3x~iphone.png'
[java] 'Default-896h@2x~iphone.png'
[java] 'Default-Landscape-414w-896h@3x~iphone.png'
[java] 'Default-Landscape-812h@3x~iphone.png'
[java] 'Default-Landscape-896h@2x~iphone.png'
[java] 'assets'
[java] 'locale'
[java] 'resources'
[java] 'style'
[java] 'workers'
[java] 'workers_debug'
[java] '-extdir'
[java] '********************/air_51.1_release_3.01/'

[java] The ' characters around the executable and arguments are
[java] not part of the command.
[java] unexpected failure: Unable to run java: com.adobe.air.ADTException: gradle tool failed:
[java] FAILURE: Build failed with an exception.

[java] * What went wrong:
[java] Could not open settings generic class cache for settings file '********************\Local\Temp\520d6aa1-760e-45f4-8bce-f84c66e632ba\settings.gradle' (********************\caches\8.0\scripts\7sz96dv8ctfe4qkh17ipc1lvn).
[java] > BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65

[java] * Try:
[java] > Run with --stacktrace option to get the stack trace.
[java] > Run with --info or --debug option to get more log output.
[java] > Run with --scan to get full insights.

[java] * Get more help at https://help.gradle.org

[java] BUILD FAILED in 5s

[java] java.io.IOException: Unable to run java: com.adobe.air.ADTException: gradle tool failed:
[java] FAILURE: Build failed with an exception.

[java] * What went wrong:
[java] Could not open settings generic class cache for settings file '********************\Local\Temp\520d6aa1-760e-45f4-8bce-f84c66e632ba\settings.gradle' (********************\.gradle\caches\8.0\scripts\7sz96dv8ctfe4qkh17ipc1lvn).
[java] > BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65

[java] * Try:
[java] > Run with --stacktrace option to get the stack trace.
[java] > Run with --info or --debug option to get more log output.
[java] > Run with --scan to get full insights.

[java] * Get more help at https://help.gradle.org

[java] BUILD FAILED in 5s

[java] 	at com.adobe.air.apk.AABOutputStream.buildGradle(AABOutputStream.java)
[java] 	at com.adobe.air.apk.AABPackager.renameOutput(AABPackager.java)
[java] 	at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java)
[java] 	at com.adobe.air.apk.AABPackager.createPackage(AABPackager.java)
[java] 	at com.adobe.air.ADT.parseArgsAndGo(ADT.java)
[java] 	at com.adobe.air.ADT.run(ADT.java)
[java] 	at com.adobe.air.ADT.main(ADT.java)

When I revert to androidx.core version 1.13.100 (from release v2.9.2) and compile with JDK 17, the error disappears, and the project compiles successfully.

Steps to Reproduce

  1. Use AIR SDK 51.1.3.3.
  2. Use ANE androidx.core version 2.00 (release v3.0.0).
  3. Compile the project with JDK 17 or 21.
  4. Observe the error during the compilation process.

Workaround

Reverting to ANE androidx.core version 1.13.100 (release v2.9.2) and using JDK 17 resolves the issue.

Expected Behavior

The project should compile successfully with ANE androidx.core version 2.00 and AIR SDK 51.1.3.3.

Environment

  • AIR SDK: 51.1.3.3
  • Java JDK: 17 and 21
  • ANE: androidx.core version 2.00

Please advise on how to resolve this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions