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