# ERROR: cmd.exe failed with args /c "C:................Android\\gradle\\rungradle.bat" :app:bundleRelease

**URL:** <https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args-c-c-android-gradle-rungradle-bat-bundlerelease/557637>\
**Category:** Mobile\
**Tags:** unreal-engine, Android, UE4-27, question\
**Created:** [May 15, 2022, 11:08am UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args-c-c-android-gradle-rungradle-bat-bundlerelease/557637 "2022-05-15T11:08:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![LyleGO](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LyleGO](https://forums.unrealengine.com/u/LyleGO)\
**Post date:** [May 15, 2022, 11:09am UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args-c-c-android-gradle-rungradle-bat-bundlerelease/557637/1 "2022-05-15T11:09:00Z")

</div>

Hi all, I’m having a problem with android which cannot be packaged successfully.

I’m not quite sure what’s going on and would appreciate help.

* * *

## my version: ●Android Studio: The original 3.5.3 has been upgraded to 2021.2.1 ●NDK: 21.3.6528147 ●JDK: jdk1.8.0\_301 ●Target SDK Version: 30

Here is a picture of my packaging error:

 ![ErrorImage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/3/7/e378e58f1402ce5c030819c5b6c784435643bbaf.png)

Here are my project settings:  
PS: I use [AAB] for packaging

 ![ErrorImage_02](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/1/8c12523057968c9c3a6f936da6fa22aa78f7a235.png)  
 ![ErrorImage_03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/8/848a15fb171565f2d389309ce5023d5c08f626be.png)

---

<div class="post-metadata">

**Author:** ![dev.ue.games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dev.ue.games/32/466816_2.png) [@dev.ue.games](https://forums.unrealengine.com/u/dev.ue.games)\
**Post date:** [May 15, 2022, 2:54pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args-c-c-android-gradle-rungradle-bat-bundlerelease/557637/2 "2022-05-15T14:54:32Z")

</div>

everything looks great) try disabling this plugin “Steam VR” - restart the engine - and pack //  
show me your sdk setting in android studio

---

<div class="post-metadata">

**Author:** ![LyleGO](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LyleGO](https://forums.unrealengine.com/u/LyleGO)\
**Post date:** [May 15, 2022, 4:31pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args-c-c-android-gradle-rungradle-bat-bundlerelease/557637/3 "2022-05-15T16:31:18Z")

</div>

Thank you very much for your willingness to help,  
Here are the settings of my Android studio

My Steam VR plugin was closed at first

Still not working

 ![ErrorImage_05](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/6/f/46f65ac1190fef2694cf26bc80f31fc3ebddbda8.png)

---

<div class="post-metadata">

**Author:** ![dev.ue.games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dev.ue.games/32/466816_2.png) [@dev.ue.games](https://forums.unrealengine.com/u/dev.ue.games)\
**Post date:** [May 15, 2022, 4:35pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args-c-c-android-gradle-rungradle-bat-bundlerelease/557637/4 "2022-05-15T16:35:12Z")

</div>

![Screenshot_193](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/a/5/8a58a5cb5be243a4f8cf00097cdccefb9b5e1243.png)

---

<div class="post-metadata">

**Author:** ![dev.ue.games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dev.ue.games/32/466816_2.png) [@dev.ue.games](https://forums.unrealengine.com/u/dev.ue.games)\
**Post date:** [May 15, 2022, 4:37pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args-c-c-android-gradle-rungradle-bat-bundlerelease/557637/5 "2022-05-15T16:37:11Z")

</div>

show me

---

<div class="post-metadata">

**Author:** ![LyleGO](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LyleGO](https://forums.unrealengine.com/u/LyleGO)\
**Post date:** [May 15, 2022, 4:41pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args-c-c-android-gradle-rungradle-bat-bundlerelease/557637/6 "2022-05-15T16:41:37Z")

</div>

Thank you, I took the picture in the SDK tool according to your picture

 ![ErrorImage_06](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/5/d/e5dd2bdf5f816ed2de6b0663e9db5148226fe253.png)

---

<div class="post-metadata">

**Author:** ![dev.ue.games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dev.ue.games/32/466816_2.png) [@dev.ue.games](https://forums.unrealengine.com/u/dev.ue.games)\
**Post date:** [May 15, 2022, 4:55pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args-c-c-android-gradle-rungradle-bat-bundlerelease/557637/7 "2022-05-15T16:55:21Z")

</div>

it’s weird … i don’t see any errors… and you put extra plugins maybe? or does the firewall block the engine?

---

<div class="post-metadata">

**Author:** ![dev.ue.games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dev.ue.games/32/466816_2.png) [@dev.ue.games](https://forums.unrealengine.com/u/dev.ue.games)\
**Post date:** [May 15, 2022, 4:58pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args-c-c-android-gradle-rungradle-bat-bundlerelease/557637/8 "2022-05-15T16:58:33Z")

</div>

try

 ![Screenshot_194](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/6/db6a781407461dcec0c142a25486c3d53b9f475b.png)  
 ![Screenshot_195](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/4/e/94e7aeb6dccd92ebceb137e83e13300a7b39a877.png)

---

<div class="post-metadata">

**Author:** ![Anthony\_Attwood](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anthony\_Attwood](https://forums.unrealengine.com/u/Anthony_Attwood)\
**Post date:** [July 27, 2023, 9:36pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args-c-c-android-gradle-rungradle-bat-bundlerelease/557637/9 "2023-07-27T21:36:19Z")

</div>

Why would enabling GooglePAD prevent Gradle errors?
