Unreal android packaging

gradle error on packaging unreal project into android

UATHelper: Packaging (Android (ASTC)): ERROR: cmd.exe failed with args /c “C:\Users\abc\OneDrive\Documents\Unreal Projects\sz0808b_mobile\Intermediate\Android\armv7\gradle\rungradle.bat” :app:assembleDebug

PackagingResults: Error: cmd.exe failed with args /c “C:\Users\kings\OneDrive\Documents\Unreal Projects\sz0808b_mobile\Intermediate\Android\armv7\gradle\rungradle.bat” :app:assembleDebug

PackagingResults: Error: Unknown Error

have you installed all needed for packaging in android?
If so try delete C:\Users\abc\OneDrive\Documents\Unreal Projects\sz0808b_mobile\Intermediate\Android\armv7\gradle\ folder and try again.

if not follow this video to install the needed stuff:

1 Like

I am on UE5 and running into the same error:
ERROR: cmd.exe failed with args /c

I have 8 maps in total, when I have any 2 maps only it work perfictly. once add more it show this error. I have done all UE documentations youtube videos etc etc no solution yet!

Try going into:
\PROJECTFOLDER\Intermediate\Android\arm64\ and delete the “gradle” folder.
Close editor, Rebuild the visual studio solution for the project and Try packaging the game again.

1 Like