# Error while deplyoing/packaging project

**URL:** <https://forums.unrealengine.com/t/error-while-deplyoing-packaging-project/132430>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [October 21, 2019, 8:26am UTC](https://forums.unrealengine.com/t/error-while-deplyoing-packaging-project/132430 "2019-10-21T08:26:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pido17](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pido17](https://forums.unrealengine.com/u/pido17)\
**Post date:** [October 21, 2019, 8:26am UTC](https://forums.unrealengine.com/t/error-while-deplyoing-packaging-project/132430/1 "2019-10-21T08:26:14Z")

</div>

Hi all! I’m experiencing an issue while trying to launch a project on my device, or packaging it. These are the last lines of the output log:

UATHelper: Packaging (Android (ETC1)): Creating rungradle.bat to work around commandline length limit (using unused drive letter Z:)  
UATHelper: Packaging (Android (ETC1)): Making .apk with Gradle…  
UATHelper: Packaging (Android (ETC1)): ERROR: C:\WINDOWS\system32\cmd.exe failed with args /c “E:\Unreal Projects\AndroidProj2\Intermediate/Android/APK\gradle\rungradle.bat” :app:assembleDebug  
UATHelper: Packaging (Android (ETC1)): (see C:\Users\Asus\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+UE\_4.22\Log.txt for full exception trace)  
PackagingResults: Error: C:\WINDOWS\system32\cmd.exe failed with args /c “E:\Unreal Projects\AndroidProj2\Intermediate/Android/APK\gradle\rungradle.bat” :app:assembleDebug  
UATHelper: Packaging (Android (ETC1)): AutomationTool exiting with ExitCode=1 (Error\_Unknown)  
UATHelper: Packaging (Android (ETC1)): BUILD FAILED  
PackagingResults: Error: Unknown Error

I followed the Android Quick Start Guide, connected my device in Dev Mode (which I can see by adb devices and through Unreal), I installed what needed. But still something goes wrong.  
Any idea?  
Thanks!

---

<div class="post-metadata">

**Author:** ![pido17](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pido17](https://forums.unrealengine.com/u/pido17)\
**Post date:** [October 24, 2019, 9:47am UTC](https://forums.unrealengine.com/t/error-while-deplyoing-packaging-project/132430/2 "2019-10-24T09:47:12Z")

</div>

Up.  
Nobody had similar issues? I have already tried many workaround taken from the web ☹

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a907a646](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a907a646](https://forums.unrealengine.com/u/anonymous_user_a907a646)\
**Post date:** [December 17, 2019, 1:19am UTC](https://forums.unrealengine.com/t/error-while-deplyoing-packaging-project/132430/3 "2019-12-17T01:19:07Z")

</div>

This too is driving me nuts. Not a single solution on the web (and I have tried MANY) works.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dff91eac](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dff91eac](https://forums.unrealengine.com/u/anonymous_user_dff91eac)\
**Post date:** [January 3, 2020, 5:26pm UTC](https://forums.unrealengine.com/t/error-while-deplyoing-packaging-project/132430/4 "2020-01-03T17:26:07Z")

</div>

Check to accept sdk tab in Android settings pressed or not, I have not been pressed and therefore gave such an error. And if this does not fix the error, change the file keystore because if there is an error in the keystore file then this also leads to this error.

---

<div class="post-metadata">

**Author:** ![METROCALK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@METROCALK](https://forums.unrealengine.com/u/METROCALK)\
**Post date:** [April 10, 2020, 12:56am UTC](https://forums.unrealengine.com/t/error-while-deplyoing-packaging-project/132430/5 "2020-04-10T00:56:36Z")

</div>

Hi guys,  
i had the same issue trying to deploy package for android after changing my ndk version.  
i followed the path to the “rungradle.bat” file and double click on it, it runs some commands. after this operation i succeed deploying the package.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_67fd1278](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_67fd1278](https://forums.unrealengine.com/u/anonymous_user_67fd1278)\
**Post date:** [April 21, 2020, 9:57am UTC](https://forums.unrealengine.com/t/error-while-deplyoing-packaging-project/132430/6 "2020-04-21T09:57:23Z")

</div>

Same issue here, Running the bat file did not help

---

<div class="post-metadata">

**Author:** ![ViceVersa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ViceVersa](https://forums.unrealengine.com/u/ViceVersa)\
**Post date:** [May 27, 2020, 10:33pm UTC](https://forums.unrealengine.com/t/error-while-deplyoing-packaging-project/132430/7 "2020-05-27T22:33:20Z")

</div>

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/5/e/a5ec6882704b7b81a18fb5f76f4d4905ccee00c9.jpeg "Unreal Engine 4.25 Android Packaging Tutorial") ](https://www.youtube.com/watch?v=7c2L3OjabV4)

---

<div class="post-metadata">

**Author:** ![jalbertodigital](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jalbertodigital](https://forums.unrealengine.com/u/jalbertodigital)\
**Post date:** [February 14, 2021, 1:22am UTC](https://forums.unrealengine.com/t/error-while-deplyoing-packaging-project/132430/8 "2021-02-14T01:22:52Z")

</div>

I got around this by deleting all of the folders in my project folder except for Config and Content. I have a blueprint project, but if you had C++ you also wouldn’t want to delete source. I found my frequent launches onto the Quest prove very finicky, and doing this resolved some of the crashes.
