# ERROR: cmd.exe failed with args /c "D:\\UE4-projects\\MyProject2\\Intermediate\\Android\\gradle\\rungradle.bat" :app:bundleRelease in UE4.26.2

**URL:** <https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args-c-d-ue4-projects-myproject2-intermediate-android-gradle-rungradle-bat-bundlerelease-in-ue4-26-2/1217161>\
**Category:** Mobile\
**Tags:** unreal-engine, crash, Android, bug-report, question\
**Created:** [July 2, 2023, 1:01pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args-c-d-ue4-projects-myproject2-intermediate-android-gradle-rungradle-bat-bundlerelease-in-ue4-26-2/1217161 "2023-07-02T13:01:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Green\_letsplay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Green\_letsplay](https://forums.unrealengine.com/u/Green_letsplay)\
**Post date:** [July 2, 2023, 1:01pm UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args-c-d-ue4-projects-myproject2-intermediate-android-gradle-rungradle-bat-bundlerelease-in-ue4-26-2/1217161/1 "2023-07-02T13:01:02Z")

</div>

I’m trying to pack a project in UE4.26.2 for android. I receive errors in response:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/3/6/73679997e22e0e5b7c4afe29714b2a2f648ec5c8.png)  
I assume that the problem is in gradle, but I don’t understand how to solve it. I read on various forums that it is necessary to change jcenter() to mavenCentral() in the build.gradle file. I changed it, but when I start repackaging the project for android, in my build.gradle file automatically mavenCentral() changes back to jcenter()…

Android Studio version: 4.2.2 (tried fourth and 3.8.3 - same error everywhere) Unreal Engine version: 4.26.2

About SDK, NDK, JDK:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/2/b/92be317a504c0c7968822a6149961ce2587d7ee3.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/d/05d48f9579de1bdd04ea5176090fe1563e3f8e35.png)

---

<div class="post-metadata">

**Author:** ![user\_02cc7f204342af00aad67e775024d46fc3fe0601b668c1a2be5d22](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@user\_02cc7f204342af00aad67e775024d46fc3fe0601b668c1a2be5d22](https://forums.unrealengine.com/u/user_02cc7f204342af00aad67e775024d46fc3fe0601b668c1a2be5d22)\
**Post date:** [August 9, 2023, 7:34am UTC](https://forums.unrealengine.com/t/error-cmd-exe-failed-with-args-c-d-ue4-projects-myproject2-intermediate-android-gradle-rungradle-bat-bundlerelease-in-ue4-26-2/1217161/2 "2023-08-09T07:34:22Z")

</div>

same error as you meet  
I think should set the cert of web in whitelist
