Export to Android AAB

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By petermoyle

Hi,

I’m having difficulties exporting to AAB.

Godot version 3.5 (Also first tried 3.4.4)

I have a new iMac which has OpenJDK and Android SDK setup according to documentation.

I also have a MacBook Air configured the same.

On the MacBook Air it exports successfully.

On the iMac I get the following errors in the Gradle build window.

Any help would be great, I have gone round and round in circles trying various versions of every part of android SDK and OpenJDK

Task :clean
Task :assetPacks:installTime:clean
Task :preBuild UP-TO-DATE
Task :preReleaseBuild UP-TO-DATE
Task :assetPacks:installTime:generateAssetPackManifest
Task :compileReleaseRenderscript NO-SOURCE
Task :generateReleaseResValues
Task :generateReleaseResources
Task :processReleaseAssetPackManifests
Task :linkReleaseManifestForAssetPacks FAILED
Task :createReleaseCompatibleScreenManifests
Task :mergeReleaseResources FAILED

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • What went wrong:
    Execution failed for task ‘:linkReleaseManifestForAssetPacks’.

A failure occurred while executing com.android.build.gradle.internal.res.Aapt2ProcessResourcesRunnable
AAPT2 aapt2-7.0.3-7396180-osx Daemon #7: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.

  • Try:
    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.
    ==============================================================================

2: Task failed with an exception.

  • What went wrong:
    Execution failed for task ‘:mergeReleaseResources’.

Multiple task action failures occurred:
A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
AAPT2 aapt2-7.0.3-7396180-osx Daemon #0: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
AAPT2 aapt2-7.0.3-7396180-osx Daemon #4: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
AAPT2 aapt2-7.0.3-7396180-osx Daemon #3: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
AAPT2 aapt2-7.0.3-7396180-osx Daemon #1: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
AAPT2 aapt2-7.0.3-7396180-osx Daemon #2: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
AAPT2 aapt2-7.0.3-7396180-osx Daemon #5: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.
A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
AAPT2 aapt2-7.0.3-7396180-osx Daemon #6: Daemon startup failed
This should not happen under normal circumstances, please file an issue if it does.

:bust_in_silhouette: Reply From: petermoyle

I have resolved this issue. It was caused by the OpenJDK version. I used the aarch64 version which appears to be incompatible.

I installed the x64 version and installed Rosetta on Mac.

All working ok now.