# Cmd.exe failed with args rungradle.bat

**URL:** <https://forums.unrealengine.com/t/cmd-exe-failed-with-args-rungradle-bat/210691>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [March 18, 2021, 8:25am UTC](https://forums.unrealengine.com/t/cmd-exe-failed-with-args-rungradle-bat/210691 "2021-03-18T08:25:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmadkabbani](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ahmadkabbani](https://forums.unrealengine.com/u/ahmadkabbani)\
**Post date:** [March 18, 2021, 8:25am UTC](https://forums.unrealengine.com/t/cmd-exe-failed-with-args-rungradle-bat/210691/1 "2021-03-18T08:25:46Z")

</div>

Hello so I did couple tries i have set up environment I tried codeworks on 4.23 and I tried downloading android studio fresh for 4.25 and I checked that enable gradle is set to false in the engine default file because the option to untick it inside ue4.25 isn’t available and what I also tried is I put the sdk ndk and jdk recommended ones and also the newest ones out there but nothing seems to be fixing the issue I also checked the android studio sdk manager that my android repository inside it is gray out and up to date so anyone can please help me out

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bfec9cc9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bfec9cc9](https://forums.unrealengine.com/u/anonymous_user_bfec9cc9)\
**Post date:** [March 21, 2021, 3:36pm UTC](https://forums.unrealengine.com/t/cmd-exe-failed-with-args-rungradle-bat/210691/2 "2021-03-21T15:36:23Z")

</div>

i have same problem. but only in some projects not all.

UATHelper: Packaging (Android (ETC2)): ERROR: cmd.exe failed with args /c “G:\Epic\Projects\ArrowHit\Intermediate\Android\armv7\gradle\rungradle.bat” :app:assembleDebug  
PackagingResults: Error: cmd.exe failed with args /c “G:\Epic\Projects\ArrowHit\*_Intermediate_\*\Android\armv7\gradle\rungradle.bat” :app:assembleDebug  
UATHelper: Packaging (Android (ETC2)): Took 38.2202673s to run UnrealBuildTool.exe, ExitCode=6

\*\*so i removed the Intermediate folder and repacked it. \*\*
