# \[Bug\] Once a project generates an AAB, it can never NOT generate an AAB

**URL:** <https://forums.unrealengine.com/t/bug-once-a-project-generates-an-aab-it-can-never-not-generate-an-aab/472888>\
**Category:** Mobile\
**Tags:** unreal-engine, Android, question\
**Created:** [October 15, 2020, 5:57am UTC](https://forums.unrealengine.com/t/bug-once-a-project-generates-an-aab-it-can-never-not-generate-an-aab/472888 "2020-10-15T05:57:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike\_patterson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mike\_patterson](https://forums.unrealengine.com/u/mike_patterson)\
**Post date:** [October 15, 2020, 5:57am UTC](https://forums.unrealengine.com/t/bug-once-a-project-generates-an-aab-it-can-never-not-generate-an-aab/472888/1 "2020-10-15T05:57:36Z")

</div>

## Description:

When you package an Android project in UE 4.25.3, if you enable the option “Generate bundle (AAB)” in Project Settings \> Platforms \> Android \> App Bundles, and then Package your Android project, it generates an AAB as expected (yay!). However, if you then uncheck “Generate bundle (AAB)” and go to Package your Android project, **Android will still generate an AAB anyway.**

## Steps to Repro:

1. Open Epic Games Launcher
2. Make sure Unreal Engine version 4.25.3 is installed
3. Make sure the correct Android SDK and NDK are installed ([[https://docs.unrealengine.com/en-US/Platforms/Mobile/Android/Setup/AndroidStudio/index.html](https://docs.unrealengine.com/en-US/Platforms/Mobile/Android/Setup/AndroidStudio/index.html)][1])
4. Make sure Android device has been set up for UE development ([[https://docs.unrealengine.com/en-US/Platforms/Mobile/Android/SettingAndroidDeviceDevelopment/index.html](https://docs.unrealengine.com/en-US/Platforms/Mobile/Android/SettingAndroidDeviceDevelopment/index.html)][2])
5. Launch UE 4.25.3
6. Create a new project with the project category “Games” and click “Next”
7. Select “Handheld AR” template and click “Next”
8. Change “Maximum Quality” to “Scalable 3D or 2D”
9. Change “Desktop / Console” to “Mobile / Tablet”
10. Give your new project a name and click “Create Project” (I’m naming mine “AR\_Test”)
11. In the Unreal Editor, navigate to Project Settings \> Platforms \> Android
12. Click “Configure Now” under “APK Packaging”
13. Scroll down and click “Configure Now” under “Google Play Services”
14. From the default “HandheldARBlankMap” map, go to File \> Package Project \> Android \> Android Multi
15. In the Package project… window that appears, navigate to the project’s root directory and click “Select Folder”
16. Wait for packaging process to finish
17. Observe that the following files have been created:

 ![318635-capture-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/a/f8a5d2c9c15777afee5b163cd51c0499c271585a.png)

1. Delete these files
2. In the Unreal project, go back to Project Settings \> Platforms \> Android
3. Set “Generate bundle (AAB)” under “App Bundles” to **true**
4. Repeat steps 14 through 16
5. Observe that the following files have been created:

 ![318636-capture-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/d/7/3d7d879600db1f0b564b8a2d2299f8d753a83a74.png)

1. Repeat steps 18 through 19
2. This time, set “Generate bundle (AAB)” to **false**
3. Repeat steps 14 through 16 again
4. Observe that the .aab file is **still being generated despite the setting being disabled** and weirdly the date modified field shows its original creation date from before being deleted, yet the creation date is newer than the modification date:

 ![318637-capture-3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/3/8/6380cefc3ac415d49d92271277b06298ac4a1c91.png)

## Expected Results:

**Disabling “Generate bundle (AAB)” should prevent Unreal Engine from recreating a previously deleted .aab file.**

## Actual Results:

**Once “Generate bundle (AAB)” has been enabled and a project built, the user can never again package the project for android without also generating an AAB bundle.**

This bug was reproduced 3/3 times.

---

<div class="post-metadata">

**Author:** ![UsainBolt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UsainBolt](https://forums.unrealengine.com/u/UsainBolt)\
**Post date:** [March 3, 2021, 2:17pm UTC](https://forums.unrealengine.com/t/bug-once-a-project-generates-an-aab-it-can-never-not-generate-an-aab/472888/2 "2021-03-03T14:17:25Z")

</div>

I have the same issue, did you find any solution to this?

---

<div class="post-metadata">

**Author:** ![UsainBolt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UsainBolt](https://forums.unrealengine.com/u/UsainBolt)\
**Post date:** [March 4, 2021, 7:58am UTC](https://forums.unrealengine.com/t/bug-once-a-project-generates-an-aab-it-can-never-not-generate-an-aab/472888/3 "2021-03-04T07:58:52Z")

</div>

I have the same issue, did you find any solution to this?

---

<div class="post-metadata">

**Author:** ![Farrag](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/farrag/32/1069076_2.png) [@Farrag](https://forums.unrealengine.com/u/Farrag)\
**Post date:** [August 4, 2022, 5:30pm UTC](https://forums.unrealengine.com/t/bug-once-a-project-generates-an-aab-it-can-never-not-generate-an-aab/472888/4 "2022-08-04T17:30:27Z")

</div>

I faced the problem and fixed it by cleaning the project up:  
You have to delete:

- `.vs`
- `Binaries`
- `DerivedDataCache`
- `Intermediate`
- `Plugins/*/Intermediate` (any Intermediate folder inside a plugin)
- Saved `ProjectName.sln` (only if your project has a c++ code in it)
