Hello, I came back on a old project on UE4.26.2 to build a .aab for 33 sdk api level.
I am using the SDK and the 21.1.6… NDK from android studio 2022 for info. At first I had errors about the build tools (ver 34.0.0, but others do not work too for sdk api 28 for example) being corrupted so I added the dx files but then it gives me another error which is :
FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (ETC2)):
UATHelper: Packaging (Android (ETC2)): * What went wrong:
UATHelper: Packaging (Android (ETC2)): Execution failed for task ‘:app:bundleDebugResources’.
UATHelper: Packaging (Android (ETC2)): > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
UATHelper: Packaging (Android (ETC2)): > AAPT2 aapt2-4.0.0-6051327-windows Daemon #0: Unexpected error during link, attempting to stop daemon.
UATHelper: Packaging (Android (ETC2)): This should not happen under normal circumstances, please file an issue if it does.
Of course I filled the Android sdk blankspaces in project settings, thanks for help
LogPlayLevel: > Task :app:processDebugResources FAILED
LogPlayLevel: 23 actionable tasks: 5 executed, 18 up-to-date
LogPlayLevel: FAILURE: Build failed with an exception.
LogPlayLevel: * What went wrong:
LogPlayLevel: Execution failed for task ‘:app:processDebugResources’.
LogPlayLevel: > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
LogPlayLevel: > AAPT2 aapt2-4.0.0-6051327-linux Daemon #0: Unexpected error during link, attempting to stop daemon.
LogPlayLevel: This should not happen under normal circumstances, please file an issue if it does.
LogPlayLevel: * Try:
LogPlayLevel: 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.
LogPlayLevel: * Get more help at https://help.gradle.org
LogPlayLevel: BUILD FAILED in 9s
LogPlayLevel: Error: ERROR: /bin/sh failed with args -c ‘“/home/user/Projects/game/Intermediate/Android/armv7/gradle/gradlew” :app:assembleDebug’
to fix this problem just need to remove all installed android SDKs
for example in Linux: rm -rf $HOME/Android/Sdk/build-tools/*
then install in android-studio-4.0 SDK 31