# ERROR: cmd.exe failed with args

**URL:** <https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args/262316>\
**Category:** Mobile\
**Tags:** unreal-engine\
**Created:** [November 23, 2021, 12:26pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args/262316 "2021-11-23T12:26:39Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndreeMichels](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andreemichels/32/88706_2.png) [@AndreeMichels](https://forums.unrealengine.com/u/AndreeMichels)\
**Post date:** [November 23, 2021, 12:26pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args/262316/1 "2021-11-23T12:26:39Z")

</div>

hei guys, i have a problem in UE5, i’m from Brasil.  
When i go to compile a project to android, this problem occurs:  
UATHelper: Packaging (Android): ERROR: cmd.exe failed with args /c “C:\Users\alexandre.seibert\Documents\Unreal Projects\UE\_5\_TENTATIVA\_VR\_and\Intermediate\Android\arm64\gradle\rungradle.bat” :app:assembleDebug

---

<div class="post-metadata">

**Author:** ![AndreeMichels](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andreemichels/32/88706_2.png) [@AndreeMichels](https://forums.unrealengine.com/u/AndreeMichels)\
**Post date:** [November 24, 2021, 11:57am UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args/262316/2 "2021-11-24T11:57:24Z")

</div>

hey guys, problem solved, look a little above the error, it will be specified where it was.  
In my case, version 32.0.0 of SDK n was compatible, uninstall it in SDK Manager, and install versions up to 30.0.0, the project will compile correctly

---

<div class="post-metadata">

**Author:** ![Lane\_Pizza](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lane_pizza/32/723629_2.png) [@Lane\_Pizza](https://forums.unrealengine.com/u/Lane_Pizza)\
**Post date:** [December 6, 2021, 4:06am UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args/262316/3 "2021-12-06T04:06:36Z")

</div>

I was running into this issue on UE4.27. Thanks for helping me find the fix! It was driving me crazy, Android Studio is so messy to me.

---

<div class="post-metadata">

**Author:** ![mot766](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mot766](https://forums.unrealengine.com/u/mot766)\
**Post date:** [March 31, 2022, 1:54pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args/262316/4 "2022-03-31T13:54:43Z")

</div>

I’m having the same problem in 4.26.2

 ![cmderror](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/3/0/f306c453839d04d080dbfd9dfe3cb39c10507f19.png)

---

<div class="post-metadata">

**Author:** ![AndreeMichels](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andreemichels/32/88706_2.png) [@AndreeMichels](https://forums.unrealengine.com/u/AndreeMichels)\
**Post date:** [March 31, 2022, 2:06pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args/262316/5 "2022-03-31T14:06:57Z")

</div>

use the old version from SDK, uninstall the latest versions and install version up to 30.0.0

---

<div class="post-metadata">

**Author:** ![mot766](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mot766](https://forums.unrealengine.com/u/mot766)\
**Post date:** [March 31, 2022, 2:18pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args/262316/6 "2022-03-31T14:18:24Z")

</div>

which version should i download and can u send a link

---

<div class="post-metadata">

**Author:** ![mot766](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mot766](https://forums.unrealengine.com/u/mot766)\
**Post date:** [March 31, 2022, 2:35pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args/262316/7 "2022-03-31T14:35:44Z")

</div>

![androidsdk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/d/afddad29b30417bd423d59460c8ef657c322c22a.jpeg)

---

<div class="post-metadata">

**Author:** ![AndreeMichels](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andreemichels/32/88706_2.png) [@AndreeMichels](https://forums.unrealengine.com/u/AndreeMichels)\
**Post date:** [March 31, 2022, 2:36pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args/262316/8 "2022-03-31T14:36:24Z")

</div>

now, activate the show package details  
Uninstall de new versions, and downloaded the versions up 30.0.0

---

<div class="post-metadata">

**Author:** ![AndreeMichels](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andreemichels/32/88706_2.png) [@AndreeMichels](https://forums.unrealengine.com/u/AndreeMichels)\
**Post date:** [March 31, 2022, 2:39pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args/262316/9 "2022-03-31T14:39:23Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/e/5/ee5aa63f623ec3a9eac567d6ac8e71513f8bfd01.png)

---

<div class="post-metadata">

**Author:** ![mot766](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mot766](https://forums.unrealengine.com/u/mot766)\
**Post date:** [March 31, 2022, 2:49pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args/262316/10 "2022-03-31T14:49:38Z")

</div>

im still getting this error

 ![cmderror2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/a/2/8a27035b092bc55a6f147378346e6657f4d4da6b.png)

---

<div class="post-metadata">

**Author:** ![AndreeMichels](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andreemichels/32/88706_2.png) [@AndreeMichels](https://forums.unrealengine.com/u/AndreeMichels)\
**Post date:** [March 31, 2022, 4:37pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args/262316/11 "2022-03-31T16:37:44Z")

</div>

try deleting saved and intermediate folders

---

<div class="post-metadata">

**Author:** ![mot766](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mot766](https://forums.unrealengine.com/u/mot766)\
**Post date:** [March 31, 2022, 4:44pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args/262316/12 "2022-03-31T16:44:37Z")

</div>

that didn’t change anything

---

<div class="post-metadata">

**Author:** ![AndreeMichels](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andreemichels/32/88706_2.png) [@AndreeMichels](https://forums.unrealengine.com/u/AndreeMichels)\
**Post date:** [March 31, 2022, 4:50pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args/262316/13 "2022-03-31T16:50:10Z")

</div>

try to rename your project to myproject, go to Config folder, Default Engine, and change the name there also to myproject

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/e/9/ee94f2689a5bf6269c49f005d886591357253575.png)  
Delete the folders saved and intermediated again, and install all versions from SDK Manager up 30.0.0, all versions

---

<div class="post-metadata">

**Author:** ![mot766](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mot766](https://forums.unrealengine.com/u/mot766)\
**Post date:** [March 31, 2022, 5:09pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args/262316/14 "2022-03-31T17:09:48Z")

</div>

i changed the project’s name but there’s no code like that. i deleted both folders and installed 19.1.0-30.0.0

 ![defaultengine](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/6/e/36e501888f8f414cbac461d4df1f2670480a0f96.png)

---

<div class="post-metadata">

**Author:** ![AndreeMichels](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andreemichels/32/88706_2.png) [@AndreeMichels](https://forums.unrealengine.com/u/AndreeMichels)\
**Post date:** [March 31, 2022, 5:11pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args/262316/15 "2022-03-31T17:11:38Z")

</div>

do you think about upgrading your project to version 4.27? this is all i know to solve the problem, sorry!

---

<div class="post-metadata">

**Author:** ![mot766](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mot766](https://forums.unrealengine.com/u/mot766)\
**Post date:** [March 31, 2022, 5:59pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args/262316/16 "2022-03-31T17:59:46Z")

</div>

im downloading 4.27.2 right now

---

<div class="post-metadata">

**Author:** ![adam4designss](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/adam4designss/32/1113544_2.png) [@adam4designss](https://forums.unrealengine.com/u/adam4designss)\
**Post date:** [April 16, 2022, 11:56am UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args/262316/17 "2022-04-16T11:56:22Z")

</div>

where you get until now have the sem issue

---

<div class="post-metadata">

**Author:** ![adam4designss](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/adam4designss/32/1113544_2.png) [@adam4designss](https://forums.unrealengine.com/u/adam4designss)\
**Post date:** [April 16, 2022, 1:03pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args/262316/18 "2022-04-16T13:03:01Z")

</div>

I found this I hope it helps you

> **[How to Install SDK - Code Professionally](https://www.codeprofessionally.com/2022/02/how-to-install-sdk.html)**
>
> How to Install SDK 1 - Install SDK From Android Studio after download android Press Next Button then uncheck Android Virtual Device and Press Next then Press

---

<div class="post-metadata">

**Author:** ![ZhangJiankang](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZhangJiankang](https://forums.unrealengine.com/u/ZhangJiankang)\
**Post date:** [April 27, 2022, 6:12am UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args/262316/19 "2022-04-27T06:12:51Z")

</div>

![asd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/1/a/e1a4f05cc7a7a8dc87aa4117f88f9e41357304d6.png)  
if you also got this line, go to it find d8.bat, copy it rename to “dx.bat”  
then there is another one  
Build-tool 32.0.0 is missing DX\_JAR at C:\Users\xxxxx\AppData\Local\Android\Sdk\build-tools\32.0.0\lib\dx.jar  
do the same thing just copy and rename, it works

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6a2fb347](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6a2fb347](https://forums.unrealengine.com/u/anonymous_user_6a2fb347)\
**Post date:** [May 16, 2022, 6:48am UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args/262316/20 "2022-05-16T06:48:12Z")

</div>

Problem Fixed Here : [ERROR: cmd.exe failed with args Unreal Engine | Rungradle.bat Unreal Engine - YouTube](https://youtu.be/iyex4YmF1wc)

[Next page](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args/262316.md?page=2)
