# Packaging & Cooking error Android SDK 

**URL:** <https://forums.unrealengine.com/t/packaging-cooking-error-android-sdk/1555226>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, question\
**Created:** [December 25, 2023, 3:55pm UTC](https://forums.unrealengine.com/t/packaging-cooking-error-android-sdk/1555226 "2023-12-25T15:55:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SimonMczt](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/simonmczt/32/875998_2.png) [@SimonMczt](https://forums.unrealengine.com/u/SimonMczt)\
**Post date:** [December 25, 2023, 3:55pm UTC](https://forums.unrealengine.com/t/packaging-cooking-error-android-sdk/1555226/1 "2023-12-25T15:55:31Z")

</div>

Hi there.

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

```auto
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! 🙂

---

<div class="post-metadata">

**Author:** ![Ogreman](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ogreman/32/1139844_2.png) [@Ogreman](https://forums.unrealengine.com/u/Ogreman)\
**Post date:** [September 10, 2025, 5:52pm UTC](https://forums.unrealengine.com/t/packaging-cooking-error-android-sdk/1555226/2 "2025-09-10T17:52:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Ogreman](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ogreman/32/1139844_2.png) [@Ogreman](https://forums.unrealengine.com/u/Ogreman)\
**Post date:** [September 14, 2025, 12:17am UTC](https://forums.unrealengine.com/t/packaging-cooking-error-android-sdk/1555226/3 "2025-09-14T00:17:10Z")

</div>

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?
