Keep running into 'A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade'

Hello, I’m trying to package an Unreal project for Android. I’ve followed the guides for setting up android studio and UE4 for android dev, but keep encountering this issue:

FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):   * What went wrong:
UATHelper: Packaging (Android (ASTC)):   Execution failed for task ':app:processDebugResources'.
UATHelper: Packaging (Android (ASTC)):   > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
UATHelper: Packaging (Android (ASTC)):      > AAPT2 aapt2-4.0.0-6051327-windows Daemon #0: Unexpected error during link, attempting to stop daemon.
UATHelper: Packaging (Android (ASTC)):        This should not happen under normal circumstances, please file an issue if it does.
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):   * Try:
UATHelper: Packaging (Android (ASTC)):   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.
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):   * Get more help at https://help.gradle.org
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):   BUILD FAILED in 17s
UATHelper: Packaging (Android (ASTC)):   > Task :app:processDebugResources FAILED
UATHelper: Packaging (Android (ASTC)):   48 actionable tasks: 48 executed
UATHelper: Packaging (Android (ASTC)):   ERROR: cmd.exe failed with args /c "C:\repos\ICDCorePlugin\Intermediate\Android\arm64\gradle\rungradle.bat" :app:assembleDebug
PackagingResults: Error: cmd.exe failed with args /c "C:\repos\ICDCorePlugin\Intermediate\Android\arm64\gradle\rungradle.bat" :app:assembleDebug

But why are you posting in a Gradle community forum?
You have a problem with aapt, not with Gradle.
And it even tells you explicitly that you hit a bug and should report it to aapt or AGP. :wink:

Sorry, I’m not familiar with android development. The error said to get help on the Gradle website, so I thought it was an issue related to Gradle.

Ah, yeah, that is an imho horribly misplaced hint.
It is always displayed if the build goes awry, be it a Gradle problem or not, as it cannot really know either way.