# How to package game with one file larger than 2 GB for Android?

**URL:** <https://forums.unrealengine.com/t/how-to-package-game-with-one-file-larger-than-2-gb-for-android/2391132>\
**Category:** Mobile\
**Tags:** unreal-engine, question\
**Created:** [March 15, 2025, 1:17pm UTC](https://forums.unrealengine.com/t/how-to-package-game-with-one-file-larger-than-2-gb-for-android/2391132 "2025-03-15T13:17:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Etyuhibosecyu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/etyuhibosecyu/32/1044081_2.png) [@Etyuhibosecyu](https://forums.unrealengine.com/u/Etyuhibosecyu)\
**Post date:** [March 15, 2025, 1:17pm UTC](https://forums.unrealengine.com/t/how-to-package-game-with-one-file-larger-than-2-gb-for-android/2391132/1 "2025-03-15T13:17:58Z")

</div>

I have already turned on “Allow large OBB files”, “Allow patch OBB file” and “Allow overflow OBB files”. If I turn on “Package game data inside .apk?”, the packaging fails with the following error:

```auto
UATHelper: Packaging (Android (ASTC)): FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (ASTC)): 69 actionable tasks: 5 executed, 64 up-to-date
UATHelper: Packaging (Android (ASTC)): * What went wrong:
UATHelper: Packaging (Android (ASTC)): Execution failed for task ':app:compressReleaseAssets'.
UATHelper: Packaging (Android (ASTC)): > A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
UATHelper: Packaging (Android (ASTC)): > Required array size too large
UATHelper: Packaging (Android (ASTC)): * Try:
UATHelper: Packaging (Android (ASTC)): > Run with --stacktrace option to get the stack trace.
UATHelper: Packaging (Android (ASTC)): > Run with --info or --debug option to get more log output.
UATHelper: Packaging (Android (ASTC)): > Run with --scan to get full insights.
UATHelper: Packaging (Android (ASTC)): > Get more help at https://help.gradle.org.
UATHelper: Packaging (Android (ASTC)): BUILD FAILED in 22s

```

If I turn off “Package game data inside .apk?”, the game is packaged but freezes on splash screen after launch on the phone. How to fix this?

---

<div class="post-metadata">

**Author:** ![FrostyJas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frostyjas/32/1194640_2.png) [@FrostyJas](https://forums.unrealengine.com/u/FrostyJas)\
**Post date:** [March 17, 2025, 5:59am UTC](https://forums.unrealengine.com/t/how-to-package-game-with-one-file-larger-than-2-gb-for-android/2391132/2 "2025-03-17T05:59:38Z")

</div>

Greetings @Etyuhibosecyu

Did you resolve the issue for the Android? If not, I’d be happy to take a look! Let me know.

---

<div class="post-metadata">

**Author:** ![Etyuhibosecyu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/etyuhibosecyu/32/1044081_2.png) [@Etyuhibosecyu](https://forums.unrealengine.com/u/Etyuhibosecyu)\
**Post date:** [March 17, 2025, 2:51pm UTC](https://forums.unrealengine.com/t/how-to-package-game-with-one-file-larger-than-2-gb-for-android/2391132/3 "2025-03-17T14:51:03Z")

</div>

Hello @FrostyJas! Yes, if the topic is deleted then it does not worth since it is resolved trivially. I just haven’t checked that “Allow overflow OBB files” had been actually enabled in the config file. Turning this flag off and again on, with “Package game data inside .apk?” turned off, solved the problem.

---

<div class="post-metadata">

**Author:** ![FrostyJas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frostyjas/32/1194640_2.png) [@FrostyJas](https://forums.unrealengine.com/u/FrostyJas)\
**Post date:** [March 19, 2025, 9:55am UTC](https://forums.unrealengine.com/t/how-to-package-game-with-one-file-larger-than-2-gb-for-android/2391132/4 "2025-03-19T09:55:13Z")

</div>

Oh, I see! I’m glad you got it resolved!

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [April 18, 2025, 9:55am UTC](https://forums.unrealengine.com/t/how-to-package-game-with-one-file-larger-than-2-gb-for-android/2391132/5 "2025-04-18T09:55:38Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
