# Help How do I fix the ERROR: cmd.exe failed with args /c "D:\\projects\\MyProject3\\Intermediate\\Android\\armv7\\gradle\\rungradle.bat" :app:assembleDebug

**URL:** <https://forums.unrealengine.com/t/help-how-do-i-fix-the-error-cmd-exe-failed-with-args-c-d-projects-myproject3-intermediate-android-armv7-gradle-rungradle-bat-assembledebug/483743>\
**Category:** Mobile\
**Tags:** engine, unreal-engine, Android, question\
**Created:** [May 22, 2021, 10:13am UTC](https://forums.unrealengine.com/t/help-how-do-i-fix-the-error-cmd-exe-failed-with-args-c-d-projects-myproject3-intermediate-android-armv7-gradle-rungradle-bat-assembledebug/483743 "2021-05-22T10:13:09Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grapekiller1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Grapekiller1](https://forums.unrealengine.com/u/Grapekiller1)\
**Post date:** [May 22, 2021, 10:13am UTC](https://forums.unrealengine.com/t/help-how-do-i-fix-the-error-cmd-exe-failed-with-args-c-d-projects-myproject3-intermediate-android-armv7-gradle-rungradle-bat-assembledebug/483743/1 "2021-05-22T10:13:09Z")

</div>

I need help with this Because when I try and launch to my quest 2 it just keeps coming up with this error, have tried all the different ways people have said to and it still doesn’t work ,PLEASE HELP

---

<div class="post-metadata">

**Author:** ![tangjunlong](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tangjunlong/32/623840_2.png) [@tangjunlong](https://forums.unrealengine.com/u/tangjunlong)\
**Post date:** [May 25, 2021, 4:19am UTC](https://forums.unrealengine.com/t/help-how-do-i-fix-the-error-cmd-exe-failed-with-args-c-d-projects-myproject3-intermediate-android-armv7-gradle-rungradle-bat-assembledebug/483743/2 "2021-05-25T04:19:18Z")

</div>

你可以尝试删除"Intermediate",再打包,"Intermediate"是ue4的临时文件存放处,删除之后,再次打开项目会自动生成

---

<div class="post-metadata">

**Author:** ![ADHDeveloper](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ADHDeveloper](https://forums.unrealengine.com/u/ADHDeveloper)\
**Post date:** [June 22, 2021, 6:40pm UTC](https://forums.unrealengine.com/t/help-how-do-i-fix-the-error-cmd-exe-failed-with-args-c-d-projects-myproject3-intermediate-android-armv7-gradle-rungradle-bat-assembledebug/483743/3 "2021-06-22T18:40:48Z")

</div>

Translation: You can try to delete “Intermediate” and repack. “Intermediate” is the temporary file storage of ue4. After deleting, open the project again and it will be automatically generated

---

<div class="post-metadata">

**Author:** ![PeterUnrealist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PeterUnrealist](https://forums.unrealengine.com/u/PeterUnrealist)\
**Post date:** [August 27, 2021, 12:28pm UTC](https://forums.unrealengine.com/t/help-how-do-i-fix-the-error-cmd-exe-failed-with-args-c-d-projects-myproject3-intermediate-android-armv7-gradle-rungradle-bat-assembledebug/483743/4 "2021-08-27T12:28:27Z")

</div>

If somebody stumbles upon this error, this is what helped me on 27AUG2021 (adding timestamp, it might become obsolete in future):

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/a/29a90c518c73405b8bb1eae42fe01c57596ea912.jpeg "Unreal Engine 4.26.2 Packaging For Android | Unreal Engine 4.26.2 Android Export .") ](https://www.youtube.com/watch?v=cLveaVXOKKc)

---

<div class="post-metadata">

**Author:** ![Ahmed\_Aniss147](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ahmed_aniss147/32/88715_2.png) [@Ahmed\_Aniss147](https://forums.unrealengine.com/u/Ahmed_Aniss147)\
**Post date:** [October 12, 2021, 4:35am UTC](https://forums.unrealengine.com/t/help-how-do-i-fix-the-error-cmd-exe-failed-with-args-c-d-projects-myproject3-intermediate-android-armv7-gradle-rungradle-bat-assembledebug/483743/5 "2021-10-12T04:35:52Z")

</div>

i can fix this error send message on facebook page : [Code Prof](https://www.facebook.com/Code-Prof-110511874050372)

---

<div class="post-metadata">

**Author:** ![Ahmed\_Aniss147](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ahmed_aniss147/32/88715_2.png) [@Ahmed\_Aniss147](https://forums.unrealengine.com/u/Ahmed_Aniss147)\
**Post date:** [October 12, 2021, 4:36am UTC](https://forums.unrealengine.com/t/help-how-do-i-fix-the-error-cmd-exe-failed-with-args-c-d-projects-myproject3-intermediate-android-armv7-gradle-rungradle-bat-assembledebug/483743/6 "2021-10-12T04:36:06Z")

</div>

i can fix this error send message on facebook page : [Code Prof](https://www.facebook.com/Code-Prof-110511874050372)

---

<div class="post-metadata">

**Author:** ![shiki\_2019](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shiki_2019/32/546483_2.png) [@shiki\_2019](https://forums.unrealengine.com/u/shiki_2019)\
**Post date:** [June 11, 2022, 2:27am UTC](https://forums.unrealengine.com/t/help-how-do-i-fix-the-error-cmd-exe-failed-with-args-c-d-projects-myproject3-intermediate-android-armv7-gradle-rungradle-bat-assembledebug/483743/7 "2022-06-11T02:27:47Z")

</div>

没有用啊，还是报错！  
iIt’s no use. Error again!

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/d/29d5cf465d69c78f07aa28727c592738aa1245ae.png)

---

<div class="post-metadata">

**Author:** ![shiki\_2019](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shiki_2019/32/546483_2.png) [@shiki\_2019](https://forums.unrealengine.com/u/shiki_2019)\
**Post date:** [June 11, 2022, 3:21am UTC](https://forums.unrealengine.com/t/help-how-do-i-fix-the-error-cmd-exe-failed-with-args-c-d-projects-myproject3-intermediate-android-armv7-gradle-rungradle-bat-assembledebug/483743/8 "2022-06-11T03:21:29Z")

</div>

I followed your YouTube Video. Code Prof [ERROR: cmd.exe failed with args Unreal Engine | Rungradle.bat Unreal Engine - YouTube](https://www.youtube.com/watch?v=iyex4YmF1wc)  
but there is a key point leading to takes me a dozen working hours. Don’t use Android API 33.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/1/8/1184cda73f49b27c0141552f4e666f36817f2627.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/1/4/b14ff8b773f07bc58a1fb9b460fdc27ccb0402a5.png)  
Don’t Check it!!!

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/8/588c0d093234baefec017c3483d2aba1106312b3.png)  
this is my succeed screenshot

---

<div class="post-metadata">

**Author:** ![shiki\_2019](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shiki_2019/32/546483_2.png) [@shiki\_2019](https://forums.unrealengine.com/u/shiki_2019)\
**Post date:** [August 4, 2022, 8:06am UTC](https://forums.unrealengine.com/t/help-how-do-i-fix-the-error-cmd-exe-failed-with-args-c-d-projects-myproject3-intermediate-android-armv7-gradle-rungradle-bat-assembledebug/483743/9 "2022-08-04T08:06:31Z")

</div>

Today，i meet the problem again. After I replace the old computer and migrate the assets from the old computer to the new computer. I started configuring the Android environment according to the video. Then start packaging, this similar problem occured.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/2/8e2530556701aa55567048d511ab41abc2ef263b.png)  
I tried all the solutions mentioned above and couldn’t solve it. In a blog post, the author mentions Android gradle，so I turned my eyes to Messages rather than Error. “download ,gradle” ,"Connect time out ". Delete folder named “.gradle” in "C:\Users\xxxxx", close all proxy.  
Start packing, it succeed.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/a/3caed9ec0e9e16e550f59146c434bf7bf52e5823.png)

There are a number of factors contributing to this problem, so pay more attention to the message above the error.

---

<div class="post-metadata">

**Author:** ![unit23](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/unit23/32/1146013_2.png) [@unit23](https://forums.unrealengine.com/u/unit23)\
**Post date:** [August 19, 2022, 5:20pm UTC](https://forums.unrealengine.com/t/help-how-do-i-fix-the-error-cmd-exe-failed-with-args-c-d-projects-myproject3-intermediate-android-armv7-gradle-rungradle-bat-assembledebug/483743/10 "2022-08-19T17:20:25Z")

</div>

SOLUTION

Go to your C:\Users\user\AppData\Local\Android\Sdk\build-tools  
Remove all the installations you do not want. Install the NDK you want, newer versions support less devices, and later versions may no longer be supported.

![asdasdasd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/b/42bfb884f9a921501c00c99b45de67be9c9ce382.jpeg)

NDK downloads [Unsupported Downloads · android/ndk Wiki · GitHub](https://github.com/android/ndk/wiki/Unsupported-Downloads)

---

<div class="post-metadata">

**Author:** ![Titanium13697](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Titanium13697](https://forums.unrealengine.com/u/Titanium13697)\
**Post date:** [March 12, 2024, 4:45am UTC](https://forums.unrealengine.com/t/help-how-do-i-fix-the-error-cmd-exe-failed-with-args-c-d-projects-myproject3-intermediate-android-armv7-gradle-rungradle-bat-assembledebug/483743/11 "2024-03-12T04:45:50Z")

</div>

After 1 week of trying to find out, I solved this problem by uninstalling Android API 33 using only Android 10.0+ and Android 5.1 in Android studio, the important thing is download and install jdk 8u301-windows- x64, hope it works  
Download Jdk 8u301 at: [Java Archive Downloads - Java SE 8u211 and later](https://www.oracle.com/java/technologies/javase/javase8u211-later-archive-downloads.html)

[image]

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/a/0/3a0a0f680b9898c2a9911b42a2735601afc1cedb.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/1/a/31a83c897c75b2f1e1b3f7e07c7e32838d2ce1f5.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/3/793014dfecaff4619f0ee1db474049fa6a24338b.png)
