# UE4.25 cmd.exe failed with args

**URL:** <https://forums.unrealengine.com/t/ue4-25-cmd-exe-failed-with-args/466181>\
**Category:** Mobile\
**Tags:** Google-Play, gradle, unreal-engine, Android, question\
**Created:** [June 3, 2020, 11:16am UTC](https://forums.unrealengine.com/t/ue4-25-cmd-exe-failed-with-args/466181 "2020-06-03T11:16:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![IDiZuI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IDiZuI](https://forums.unrealengine.com/u/IDiZuI)\
**Post date:** [June 3, 2020, 11:16am UTC](https://forums.unrealengine.com/t/ue4-25-cmd-exe-failed-with-args/466181/1 "2020-06-03T11:16:17Z")

</div>

I’ve built a bunch of times and installed the application on my phone for testing, and there were no problems. As I decided to create a version for Google Play, errors started.  
The error also occurred on versions a couple of years ago on UE 4.18, but then I deleted NVPACK, downloaded again and everything worked, but now:

The setting was this:  
[https://www.unrealengine.com/en-US/t...al-engine-4-25](https://www.unrealengine.com/en-US/t...al-engine-4-25)

ERROR: cmd.exe failed with args /c “G:\UE\Falcoware\Check\_Reaction\Check\_Reaction\Intermediate\Android\armv7\gradle\rungradle.bat” :app:assembleRelease

I run rungradle.bat separately and everything is OK, but if I run it as administrator, it gives an error:

 ![303463-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/b/eab0236683e051580f7d67e75d08a3fd11b57d75.jpeg)

Помогите исправить, буду очень благодарен

---

<div class="post-metadata">

**Author:** ![RoberutoRodrigue](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RoberutoRodrigue](https://forums.unrealengine.com/u/RoberutoRodrigue)\
**Post date:** [June 5, 2020, 5:51pm UTC](https://forums.unrealengine.com/t/ue4-25-cmd-exe-failed-with-args/466181/2 "2020-06-05T17:51:39Z")

</div>

TRY  
Into Project Setting \>\> Android \>\> “scroll” Build \>\>Set Support arm64[aka arm64-v8a]

---

<div class="post-metadata">

**Author:** ![RoberutoRodrigue](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RoberutoRodrigue](https://forums.unrealengine.com/u/RoberutoRodrigue)\
**Post date:** [June 5, 2020, 5:52pm UTC](https://forums.unrealengine.com/t/ue4-25-cmd-exe-failed-with-args/466181/3 "2020-06-05T17:52:06Z")

</div>

TRY  
Into Project Setting \>\> Android \>\> “scroll” Build \>\>Set Support arm64[aka arm64-v8a]

---

<div class="post-metadata">

**Author:** ![IDiZuI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IDiZuI](https://forums.unrealengine.com/u/IDiZuI)\
**Post date:** [June 5, 2020, 6:48pm UTC](https://forums.unrealengine.com/t/ue4-25-cmd-exe-failed-with-args/466181/4 "2020-06-05T18:48:08Z")

</div>

Yes, I did it yesterday, and it’s work now, thank you very much for your answer

---

<div class="post-metadata">

**Author:** ![SculptorM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SculptorM](https://forums.unrealengine.com/u/SculptorM)\
**Post date:** [October 17, 2020, 5:36pm UTC](https://forums.unrealengine.com/t/ue4-25-cmd-exe-failed-with-args/466181/5 "2020-10-17T17:36:28Z")

</div>

I had this problem for a week, trying on two laptops with zero success. Found this video , titled: UNREAL ENGINE 4.25.1 PACKAGING FOR ANDROID TUTORIAL UPDATED! : [UNREAL ENGINE 4.25.1 PACKAGING FOR ANDROID TUTORIAL UPDATED! - YouTube](https://www.youtube.com/watch?v=4SY2Za6j7UY)

I removed all of the files for android studio and codeworks (which took some work for some reason) and started with this process from scratch, also installing JDK 15 fresh.

It worked. The “cmd.exe failed with args /c” failure is gone. I hope this works for you. I spent a week looking for the answer, and this 20 minute step-by-step setup solved the problem.

side note: my desktop system has not had this issue at all, and is still set up differently, for some reason the laptops would not work unless this exact setup is in place.

---

<div class="post-metadata">

**Author:** ![badhepranav](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@badhepranav](https://forums.unrealengine.com/u/badhepranav)\
**Post date:** [November 3, 2020, 7:47pm UTC](https://forums.unrealengine.com/t/ue4-25-cmd-exe-failed-with-args/466181/6 "2020-11-03T19:47:57Z")

</div>

not work for me

---

<div class="post-metadata">

**Author:** ![EternalEchoesVR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eternalechoesvr/32/467488_2.png) [@EternalEchoesVR](https://forums.unrealengine.com/u/EternalEchoesVR)\
**Post date:** [June 23, 2021, 4:13pm UTC](https://forums.unrealengine.com/t/ue4-25-cmd-exe-failed-with-args/466181/8 "2021-06-23T16:13:57Z")

</div>

What fixed it for me was closing the project and **deleting the Intermediate and Saved folders**. Open it again and it worked packaged fine

---

<div class="post-metadata">

**Author:** ![EternalEchoesVR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eternalechoesvr/32/467488_2.png) [@EternalEchoesVR](https://forums.unrealengine.com/u/EternalEchoesVR)\
**Post date:** [June 23, 2021, 4:15pm UTC](https://forums.unrealengine.com/t/ue4-25-cmd-exe-failed-with-args/466181/9 "2021-06-23T16:15:30Z")

</div>

What fixed it for me was closing the project and **deleting the Intermediate and Saved folders**. Open it again and it worked packaged fine

---

<div class="post-metadata">

**Author:** ![EternalEchoesVR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eternalechoesvr/32/467488_2.png) [@EternalEchoesVR](https://forums.unrealengine.com/u/EternalEchoesVR)\
**Post date:** [June 23, 2021, 4:40pm UTC](https://forums.unrealengine.com/t/ue4-25-cmd-exe-failed-with-args/466181/10 "2021-06-23T16:40:13Z")

</div>

It does happen again after a while, just delete the folders and restart again
