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

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


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

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

1 Like

i can fix this error send message on facebook page : Code Prof

i can fix this error send message on facebook page : Code Prof

iIt’s no use. Error again!

I followed your YouTube Video. Code Prof ERROR: cmd.exe failed with args Unreal Engine | Rungradle.bat Unreal Engine - YouTube
but there is a key point leading to takes me a dozen working hours. Don’t use Android API 33.

Don’t Check it!!!

this is my succeed screenshot


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.

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.

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


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.


NDK downloads Unsupported Downloads · android/ndk Wiki · GitHub