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.

Uninstalled UE5.6.1, Reinstalled it.

Re-setup the Android-SDK.

I can Cook for Android versions

I CANNOT Package: exit error code 6

Turnkey installed Properly

Android Studio up and working fine

What am I missing?

When checking the Launch under Android it still wants to Install SDK or Full Install SDKs

yet the installed SDK matches

Allowed SDK versions: r25b - r29

Installed SDK version: r27c

Allowed SDK version: r27c

Installed SDK Version: –

Force Reinstallation of SDK

When I click on Force Re-Installation of SDK it goes through, I restart my project, and it remains the same.

Can anyone lend a helping hand?