# Packaging to Android failed: linker command failed with exit code 1

**URL:** <https://forums.unrealengine.com/t/packaging-to-android-failed-linker-command-failed-with-exit-code-1/393816>\
**Category:** Mobile\
**Tags:** Packaging-Failed, unreal-engine, question\
**Created:** [May 17, 2017, 7:29am UTC](https://forums.unrealengine.com/t/packaging-to-android-failed-linker-command-failed-with-exit-code-1/393816 "2017-05-17T07:29:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![robel.jungle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@robel.jungle](https://forums.unrealengine.com/u/robel.jungle)\
**Post date:** [May 17, 2017, 7:29am UTC](https://forums.unrealengine.com/t/packaging-to-android-failed-linker-command-failed-with-exit-code-1/393816/1 "2017-05-17T07:29:17Z")

</div>

Hi,

I just created a blank project for mobile/tablet using no starter content. Without adding anything to the project, packaging to Android(ATC) is failing with below error:

UnrealBuildTool: clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)

Packaging for windows is working OK, but packaging for Android is always failing.  
Below is a screenshot of my SDKConfig

![138211-sdkconfig.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/f/f8f4c9614837181014a4d13998cd97116836c962.png)

Attached is the output log.[outputLog][2]

Has anyone faced this issue before? Can anyone help?

---

<div class="post-metadata">

**Author:** ![robel.jungle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@robel.jungle](https://forums.unrealengine.com/u/robel.jungle)\
**Post date:** [May 19, 2017, 12:04pm UTC](https://forums.unrealengine.com/t/packaging-to-android-failed-linker-command-failed-with-exit-code-1/393816/2 "2017-05-19T12:04:14Z")

</div>

Fixed:

I removed unreal engine and set it up again from source.

This time instead of using “setup.bat”, I did “setup.bat --all”

It’s working now.

I don’t know if you really need to remove the engine. Perhaps running “setup.bat --all” without removing the engine first would have just added the missing stuff?

---

<div class="post-metadata">

**Author:** ![galatgaming](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@galatgaming](https://forums.unrealengine.com/u/galatgaming)\
**Post date:** [September 24, 2023, 1:31pm UTC](https://forums.unrealengine.com/t/packaging-to-android-failed-linker-command-failed-with-exit-code-1/393816/3 "2023-09-24T13:31:28Z")

</div>

hello i dint not get it where to use setup.bat–all like i am not finding it can you help me
