# Build failed. Unknown error

**URL:** <https://forums.unrealengine.com/t/build-failed-unknown-error/444943>\
**Category:** Platform & Builds\
**Tags:** build-error, unknown, Packaging-Error, unreal-engine, question\
**Created:** [March 9, 2019, 11:43am UTC](https://forums.unrealengine.com/t/build-failed-unknown-error/444943 "2019-03-09T11:43:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sanket\_Varia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sanket\_Varia](https://forums.unrealengine.com/u/Sanket_Varia)\
**Post date:** [March 9, 2019, 11:43am UTC](https://forums.unrealengine.com/t/build-failed-unknown-error/444943/1 "2019-03-09T11:43:22Z")

</div>

I am packaging my android game and i am getting this error:

cmd.exe failed with args /c “C:\Users\Sanket\documents\unreal projects\AntiVirusGame\_Project\Intermediate/Android/APK\gradle\rungradle.bat” : app: assembleDebug

AutomationTool exiting with exitcode=1  
Build Failed  
Unknown Error

If i chose Ant instead of gradle i get same error obv its about ant not gradle ofc.

---

<div class="post-metadata">

**Author:** ![lkav](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lkav/32/983349_2.png) [@lkav](https://forums.unrealengine.com/u/lkav)\
**Post date:** [March 10, 2019, 10:00am UTC](https://forums.unrealengine.com/t/build-failed-unknown-error/444943/2 "2019-03-10T10:00:42Z")

</div>

Hi, have you tried this solution?

[answerhub](https://answers.unrealengine.com/questions/720605/android-packaging-build-fail-ue-418.html)

---

<div class="post-metadata">

**Author:** ![Sanket\_Varia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sanket\_Varia](https://forums.unrealengine.com/u/Sanket_Varia)\
**Post date:** [March 10, 2019, 10:07am UTC](https://forums.unrealengine.com/t/build-failed-unknown-error/444943/3 "2019-03-10T10:07:48Z")

</div>

Yes i have already tried that and there was no button or option to update my android support repositories. So it didn’t work. all tho i got it fixed by simply turning off gradle and distribution checkbox.
