UE5.2 - Package Android Project - java.lang.OutOfMemoryError / ERROR: cmd.exe failed with args /c

svk123
Tue, 06 Feb 2024 01:34:27 +0000
Game Development

Hello

I am trying to package a Android project MULTI:ASTC,DXT,ECT2 in UE5.2

Android Studio configuration

Unreal Project Settings - Platform : Android/Android SDK

Error

> Task :app:packageDebug FAILED
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): * What went wrong:
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): Execution failed for task ':app:packageDebug'.
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)):    > java.lang.OutOfMemoryError (no error message)
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): * Try:
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): 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 (Multi:ASTC,DXT,ETC2)): * Get more help at https://help.gradle.org
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): BUILD FAILED in 1m 28s
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): 59 actionable tasks: 59 executed
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ERROR: cmd.exe failed with args /c "C:\spot-training-sim\Intermediate\Android\arm64\gradle\rungradle.bat" :app:assembleDebug
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)):        (see C:\Users\kumar\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.2\Log.txt for full exception trace)
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AutomationTool executed for 0h 7m 12s
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): BUILD FAILED
PackagingResults: Error: Unknown Error

Can someone please help me with this, Have watched numerous tutorials and forum replies but still stuck with this error.

Any help will be appreciated !!!

1 post - 1 participant