Packaging & Cooking error Android SDK

Hi there.

I’m getting these two lines of error when attempting to package or cook a project for an Android build:

UATHelper: Packaging (Android (Multi:ASTC,DXT,ETC2)): ERROR: Command C:\Program Files\Epic Games\UE_5.1\Engine\Extras\Android\SetupAndroid.bat android-32 30.0.3 3.10.2.4988404 25.1.8937393 -noninteractive failed [Exit code 4, working dir = C:\Program Files\Epic Games\UE_5.1\Engine\Extras\Android]
PackagingResults: Error: Command C:\Program Files\Epic Games\UE_5.1\Engine\Extras\Android\SetupAndroid.bat android-32 30.0.3 3.10.2.4988404 25.1.8937393 -noninteractive failed [Exit code 4, working dir = C:\Program Files\Epic Games\UE_5.1\Engine\Extras\Android]

Not quite sure what this means. And can’t find much about it on the internet.

I do have all the correct SDK, NDK and CMake versions listed in those errors installed (At least I think I do!).

Any help would be greatly appreciated! :slight_smile:

ALthough I am experiencing the same problem (slightly different SetupAndroid.bat parameters) I too am getting Exit Code 4

I tried the command from the command line and it gave me a success output. but within the editor it errors out to a turnkey dialog box and fails.