# Execution failed for Task :app:compileDebugAidl FAILED

**URL:** <https://forums.unrealengine.com/t/execution-failed-for-task-compiledebugaidl-failed/470952>\
**Category:** XR Development\
**Tags:** launch-error, Packaging-Error, unreal-engine, question\
**Created:** [September 10, 2020, 4:10am UTC](https://forums.unrealengine.com/t/execution-failed-for-task-compiledebugaidl-failed/470952 "2020-09-10T04:10:41Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Magnus\_Ihrefors](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Magnus\_Ihrefors](https://forums.unrealengine.com/u/Magnus_Ihrefors)\
**Post date:** [September 10, 2020, 4:10am UTC](https://forums.unrealengine.com/t/execution-failed-for-task-compiledebugaidl-failed/470952/1 "2020-09-10T04:10:41Z")

</div>

Hi,

When I try to launch or package my project (targeting android and occulus quest) I get this error log.

I am using UE 4.25.3 and installed Android studio as explained in the docs:

> **[Setting Up Android SDK and NDK for Unreal](https://docs.unrealengine.com/4.27/en-US/SharingAndReleasing/Mobile/Android/Setup/AndroidStudio/)**
>
> How to set up your Android development environment for Unreal 4.25 and later

Anybody knows what to do?

Best  
Magnus

EDeployAndroid.FilterStdOutErr: \> Task :app:compileDebugAidl FAILED  
UEDeployAndroid.FilterStdOutErr:  
UEDeployAndroid.FilterStdOutErr: FAILURE: Build failed with an exception.  
UEDeployAndroid.FilterStdOutErr:  
UEDeployAndroid.FilterStdOutErr: \* What went wrong:  
UEDeployAndroid.FilterStdOutErr: Execution failed for task ‘:app:compileDebugAidl’.  
UEDeployAndroid.FilterStdOutErr: \> 1 exception was raised by workers:  
UEDeployAndroid.FilterStdOutErr: org.gradle.process.internal.ExecException: A problem occurred starting process ‘command ‘C:\Users\ma\AppData\Local\Android\Sdk\build-tools\30.0.2\aidl.exe’’  
UEDeployAndroid.FilterStdOutErr:  
UEDeployAndroid.FilterStdOutErr:  
UEDeployAndroid.FilterStdOutErr: \* Try:  
UEDeployAndroid.FilterStdOutErr: 1 actionable task: 1 executed  
UEDeployAndroid.FilterStdOutErr: 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.  
UEDeployAndroid.FilterStdOutErr:  
UEDeployAndroid.FilterStdOutErr: \* Get more help at [https://help.gradle.org](https://help.gradle.org)  
UEDeployAndroid.FilterStdOutErr:  
UEDeployAndroid.FilterStdOutErr: BUILD FAILED in 12s  
Log.WriteException: ==============================================================================  
Log.WriteException: ERROR: cmd.exe failed with args /c “C:\temp\Unreal Engine Project folders\OculusQProject\Intermediate\Android\armv7\gradle\rungradle.bat” :app:assembleDebug  
Log.WriteException: (see C:\Users\ma\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Temp+UE\_4.25\Log.txt for full exception trace)  
Log.WriteException:  
Log.WriteException: BuildException: cmd.exe failed with args /c “C:\temp\Unreal Engine Project folders\OculusQProject\Intermediate\Android\armv7\gradle\rungradle.bat” :app:assembleDebug

---

<div class="post-metadata">

**Author:** ![Tom8788](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tom8788](https://forums.unrealengine.com/u/Tom8788)\
**Post date:** [February 3, 2022, 2:24pm UTC](https://forums.unrealengine.com/t/execution-failed-for-task-compiledebugaidl-failed/470952/2 "2022-02-03T14:24:01Z")

</div>

I’ve got exactly the same …

---

<div class="post-metadata">

**Author:** ![Kristhedev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kristhedev](https://forums.unrealengine.com/u/Kristhedev)\
**Post date:** [February 6, 2022, 8:19am UTC](https://forums.unrealengine.com/t/execution-failed-for-task-compiledebugaidl-failed/470952/3 "2022-02-06T08:19:14Z")

</div>

Some here, but just with UE5

---

<div class="post-metadata">

**Author:** ![daddy-ohhhhh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@daddy-ohhhhh](https://forums.unrealengine.com/u/daddy-ohhhhh)\
**Post date:** [February 7, 2022, 3:58pm UTC](https://forums.unrealengine.com/t/execution-failed-for-task-compiledebugaidl-failed/470952/4 "2022-02-07T15:58:11Z")

</div>

Same here, trying to text my first project in vr and it fails, tried a million things nothing working…

---

<div class="post-metadata">

**Author:** ![mthomasvrdev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mthomasvrdev](https://forums.unrealengine.com/u/mthomasvrdev)\
**Post date:** [February 20, 2022, 2:10pm UTC](https://forums.unrealengine.com/t/execution-failed-for-task-compiledebugaidl-failed/470952/5 "2022-02-20T14:10:09Z")

</div>

deleting the android folder in {project}\intermediate and relaunching fixed this issue for me

---

<div class="post-metadata">

**Author:** ![empty2fill](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@empty2fill](https://forums.unrealengine.com/u/empty2fill)\
**Post date:** [April 15, 2022, 3:13am UTC](https://forums.unrealengine.com/t/execution-failed-for-task-compiledebugaidl-failed/470952/6 "2022-04-15T03:13:03Z")

</div>

Android Studio → Configure → SDK Manager → Android SDK → SDK Tools  
 → Check Show Package Details  
 → Uncheck Android SDK Build-Tools other than SetupAndroid.bat specified :

for example UE 4.25 uncheck except “build-tools;28.0.3”

in “UnrealEngine-4.25\Engine\Extras\Android\SetupAndroid.bat” file

line 75  
call “%SDKMANAGER%” “platform-tools” “platforms;android-28” “build-tools;28.0.3” “cmake;3.10.2.4988404” “ndk;21.1.6352462”

---

<div class="post-metadata">

**Author:** ![vstr679](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vstr679](https://forums.unrealengine.com/u/vstr679)\
**Post date:** [April 15, 2022, 6:13pm UTC](https://forums.unrealengine.com/t/execution-failed-for-task-compiledebugaidl-failed/470952/7 "2022-04-15T18:13:29Z")

</div>

That helped

---

<div class="post-metadata">

**Author:** ![axelkomair01](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/axelkomair01/32/88714_2.png) [@axelkomair01](https://forums.unrealengine.com/u/axelkomair01)\
**Post date:** [May 9, 2022, 9:03am UTC](https://forums.unrealengine.com/t/execution-failed-for-task-compiledebugaidl-failed/470952/8 "2022-05-09T09:03:55Z")

</div>

That fixed it for me.

---

<div class="post-metadata">

**Author:** ![lucota90](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lucota90](https://forums.unrealengine.com/u/lucota90)\
**Post date:** [September 29, 2022, 6:40pm UTC](https://forums.unrealengine.com/t/execution-failed-for-task-compiledebugaidl-failed/470952/9 "2022-09-29T18:40:39Z")

</div>

Worked for me!

---

<div class="post-metadata">

**Author:** ![sinwindis1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sinwindis1](https://forums.unrealengine.com/u/sinwindis1)\
**Post date:** [November 13, 2022, 2:27pm UTC](https://forums.unrealengine.com/t/execution-failed-for-task-compiledebugaidl-failed/470952/10 "2022-11-13T14:27:39Z")

</div>

It worked for me, thanks.
