I’ve been trying everything to solve the problems that keep coming up when packaging a project for Android on Unreal Engine 5.1, but now I’m facing this problem with Gradle, here is the last Unreal log lines for the error.
UATHelper: Packaging (Android (ASTC)): FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (ASTC)): * What went wrong:
UATHelper: Packaging (Android (ASTC)): Execution failed for task ':app:buildReleasePreBundle'.
UATHelper: Packaging (Android (ASTC)): > Required array size too large
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)): * Get more help at https://help.gradle.org
UATHelper: Packaging (Android (ASTC)): BUILD FAILED in 1m 9s
UATHelper: Packaging (Android (ASTC)): ERROR: cmd.exe failed with args /c "C:\Users\VideoLab_01\Documents\Unreal Projects\VRTEST\Intermediate\Android\gradle\rungradle.bat" :app:bundleRelease
UATHelper: Packaging (Android (ASTC)): (see C:\Users\VideoLab_01\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.1\Log.txt for full exception trace)
UATHelper: Packaging (Android (ASTC)): AutomationTool executed for 0h 5m 23s
UATHelper: Packaging (Android (ASTC)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Android (ASTC)): BUILD FAILED
PackagingResults: Error: Unknown Error