# Unreal Engine 4.26.2 Android Build Error

**URL:** <https://forums.unrealengine.com/t/unreal-engine-4-26-2-android-build-error/1269228>\
**Category:** Mobile\
**Tags:** unreal-engine, Android, question\
**Created:** [August 22, 2023, 9:19pm UTC](https://forums.unrealengine.com/t/unreal-engine-4-26-2-android-build-error/1269228 "2023-08-22T21:19:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Veinardy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Veinardy](https://forums.unrealengine.com/u/Veinardy)\
**Post date:** [August 22, 2023, 9:19pm UTC](https://forums.unrealengine.com/t/unreal-engine-4-26-2-android-build-error/1269228/1 "2023-08-22T21:19:18Z")

</div>

Hello, I came back on a old project on UE4.26.2 to build a .aab for 33 sdk api level.  
I am using the SDK and the 21.1.6… NDK from android studio 2022 for info. At first I had errors about the build tools (ver 34.0.0, but others do not work too for sdk api 28 for example) being corrupted so I added the dx files but then it gives me another error which is :

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/9/6/99638abb277156d41cd60821f7f8772a839da7a3.png)

FAILURE: Build failed with an exception.  
UATHelper: Packaging (Android (ETC2)):  
UATHelper: Packaging (Android (ETC2)): \* What went wrong:  
UATHelper: Packaging (Android (ETC2)): Execution failed for task ‘:app:bundleDebugResources’.  
UATHelper: Packaging (Android (ETC2)): \> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade  
UATHelper: Packaging (Android (ETC2)): \> AAPT2 aapt2-4.0.0-6051327-windows Daemon #0: Unexpected error during link, attempting to stop daemon.  
UATHelper: Packaging (Android (ETC2)): This should not happen under normal circumstances, please file an issue if it does.

Of course I filled the Android sdk blankspaces in project settings, thanks for help

---

<div class="post-metadata">

**Author:** ![R3D9477](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@R3D9477](https://forums.unrealengine.com/u/R3D9477)\
**Post date:** [November 16, 2023, 8:48pm UTC](https://forums.unrealengine.com/t/unreal-engine-4-26-2-android-build-error/1269228/2 "2023-11-16T20:48:34Z")

</div>

the same  
Unreal Engine 4.27.2  
Android Studio 4.0

LogPlayLevel: \> Task :app:processDebugResources FAILED  
LogPlayLevel: 23 actionable tasks: 5 executed, 18 up-to-date  
LogPlayLevel: FAILURE: Build failed with an exception.  
LogPlayLevel: \* What went wrong:  
LogPlayLevel: Execution failed for task ‘:app:processDebugResources’.  
LogPlayLevel: \> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade  
LogPlayLevel: \> AAPT2 aapt2-4.0.0-6051327-linux Daemon #0: Unexpected error during link, attempting to stop daemon.  
LogPlayLevel: This should not happen under normal circumstances, please file an issue if it does.  
LogPlayLevel: \* Try:  
LogPlayLevel: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.  
LogPlayLevel: \* Get more help at [https://help.gradle.org](https://help.gradle.org)  
LogPlayLevel: BUILD FAILED in 9s  
LogPlayLevel: Error: ERROR: /bin/sh failed with args -c ‘“/home/user/Projects/game/Intermediate/Android/armv7/gradle/gradlew” :app:assembleDebug’

---

<div class="post-metadata">

**Author:** ![R3D9477](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@R3D9477](https://forums.unrealengine.com/u/R3D9477)\
**Post date:** [November 18, 2023, 11:28am UTC](https://forums.unrealengine.com/t/unreal-engine-4-26-2-android-build-error/1269228/3 "2023-11-18T11:28:34Z")

</div>

to fix this problem just need to remove all installed android SDKs  
for example in Linux: rm -rf $HOME/Android/Sdk/build-tools/\*  
then install in android-studio-4.0 SDK 31
