# Cmd.exe failed with args: Rungradle.bat. Packaging for android

**URL:** <https://forums.unrealengine.com/t/cmd-exe-failed-with-args-rungradle-bat-packaging-for-android/274281>\
**Category:** Mobile\
**Tags:** unreal-engine, Android, UE4-26, question\
**Created:** [January 23, 2022, 1:02am UTC](https://forums.unrealengine.com/t/cmd-exe-failed-with-args-rungradle-bat-packaging-for-android/274281 "2022-01-23T01:02:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [January 23, 2022, 10:22am UTC](https://forums.unrealengine.com/t/cmd-exe-failed-with-args-rungradle-bat-packaging-for-android/274281/2 "2022-01-23T10:22:21Z")

</div>

1. ![Screenshot_46]()  
2. ![Screenshot_47]()  
3. ![Screenshot_48]()

```auto
keytool -genkey -v -keystore ExampleKey.keystore -alias MyKey -keyalg RSA -keysize 2048 -validity 10000

```

1. enter your details there it says what need ![Screenshot_49]()
2. move the generated key to the folder with your game  
 ![Screenshot_50]()
3. the password must be the one you entered when generating the key  
 ![Screenshot_52]()

//it’s the whole process)) where you make a mistake you can look … I uploaded in the play market there were no problems … of course you may have a different project name or java location or key name))

---

_[View the full topic](https://forums.unrealengine.com/t/cmd-exe-failed-with-args-rungradle-bat-packaging-for-android/274281)._
