# Unable to deploy to Android

**URL:** <https://forums.unrealengine.com/t/unable-to-deploy-to-android/368730>\
**Category:** Platform & Builds\
**Tags:** Android-Packaging, unreal-engine, build-failed, question\
**Created:** [August 30, 2016, 10:02am UTC](https://forums.unrealengine.com/t/unable-to-deploy-to-android/368730 "2016-08-30T10:02:12Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_17c6500f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_17c6500f](https://forums.unrealengine.com/u/anonymous_user_17c6500f)\
**Post date:** [August 30, 2016, 10:02am UTC](https://forums.unrealengine.com/t/unable-to-deploy-to-android/368730/1 "2016-08-30T10:02:12Z")

</div>

I renamed a few textures that are applied to a static mesh and tried to launch the application on Samsung Tab S2. But during the final stages, it says build failed with this error:  
**Duplicated project name in import**

**I deleted Saved, Intermediate, Build folders but didn’t work.**

**Additional Information:**

1. This is not the first time, I’m deploying this application. I have done it numerous times before.
2. After renaming a few assets, I’m facing this issue

Please see the attached log for more information

[link text][1]

[104897-android\_30\_8.log](https://forums.unrealengine.com/uploads/short-url/5U7lzHnitpehcRYhRVMB8vzRGiV.log) (25.5 KB)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [August 31, 2016, 8:23pm UTC](https://forums.unrealengine.com/t/unable-to-deploy-to-android/368730/2 "2016-08-31T20:23:34Z")

</div>

Hey Vinothj,

It looks like you’re having trouble with your Android-SDK-Windows. Please open the SDK Manager that should be in the folder on your computer and then download all of the Tools that are listed. You should then restart your computer and be able to build after that. Make sure you’re on and not 1R5.

Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_17c6500f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_17c6500f](https://forums.unrealengine.com/u/anonymous_user_17c6500f)\
**Post date:** [September 6, 2016, 3:20pm UTC](https://forums.unrealengine.com/t/unable-to-deploy-to-android/368730/3 "2016-09-06T15:20:18Z")

</div>

I’m on a Mac and I couldn’t deploy to android. It works well for iOS. I’m not sure what is wrong

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [September 6, 2016, 3:26pm UTC](https://forums.unrealengine.com/t/unable-to-deploy-to-android/368730/4 "2016-09-06T15:26:33Z")

</div>

You still need to install the proper SDK on your Mac for Android. [Here is the documentation][1] that you need, click on the Mac OS button and it should refresh the page with the proper info.

Thanks!

[https://docs.unrealengine.com/latest/INT/Platforms/Android/GettingStarted/1/](https://docs.unrealengine.com/latest/INT/Platforms/Android/GettingStarted/1/)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_17c6500f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_17c6500f](https://forums.unrealengine.com/u/anonymous_user_17c6500f)\
**Post date:** [September 6, 2016, 3:34pm UTC](https://forums.unrealengine.com/t/unable-to-deploy-to-android/368730/5 "2016-09-06T15:34:52Z")

</div>

Like I mentioned in my question, this is not the first time I’m trying to deploy the app to my android device, I’ve done it many times. However, I shall see if any settings for android have changed. Do you think the settings could have changed?!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [September 6, 2016, 9:17pm UTC](https://forums.unrealengine.com/t/unable-to-deploy-to-android/368730/6 "2016-09-06T21:17:25Z")

</div>

The following error typically means there is a problem with the SDK. Android-SDK-Windows.

```
ERROR: BUILD FAILED
Program.Main: ERROR: AutomationTool terminated with exception:
Program.Main: ERROR: Exception in UnrealBuildTool: ERROR: /bin/sh failed with args -c '"/Users//apache-ant-1.8.2/bin/ant" -quiet debug'

```

Please make sure you’ve installed your Android SDK correctly. I’d also like to see a screenshot of your Android SDK settings from the engine:

![98373-androidsdk.jpg|604x316](

Here is how my Window’s SDK Manager looks for Android, feel free to use it to compare on your Mac: Make sure it’s set up for 1R4u2.

 ![105874-sdkmanager.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/e/e4e4325cca5814278d9e35b3fae4891602073d80.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_17c6500f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_17c6500f](https://forums.unrealengine.com/u/anonymous_user_17c6500f)\
**Post date:** [September 7, 2016, 11:47am UTC](https://forums.unrealengine.com/t/unable-to-deploy-to-android/368730/7 "2016-09-07T11:47:46Z")

</div>

I did not configure the SDK settings because leaving those fields blank will default to environment variables. I had set the environment variables correctly and it was all working fine until recently. Now, I have configured it manually (See the attachment) but still it didn’t work. I have attached the log file

alt text  
[link text][1]

[106028-android\_07\_09.log](https://forums.unrealengine.com/uploads/short-url/yCY0d8vuIfmwfl8StAhg4VIeg8w.log) (25.3 KB)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [September 7, 2016, 2:24pm UTC](https://forums.unrealengine.com/t/unable-to-deploy-to-android/368730/8 "2016-09-07T14:24:34Z")

</div>

Did you download the ‘Tools’ from the SDK Manager? See on my screenshot where it says Android Platform Tools and Android Build Tools?

```
ERROR: /bin/sh failed with args -c '"/Users//apache-ant-1.8.2/bin/ant" -quiet debug

```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_17c6500f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_17c6500f](https://forums.unrealengine.com/u/anonymous_user_17c6500f)\
**Post date:** [September 8, 2016, 1:43pm UTC](https://forums.unrealengine.com/t/unable-to-deploy-to-android/368730/9 "2016-09-08T13:43:12Z")

</div>

Hi ,

Thank you for your help. But I’m kind of lost now. I followed the Unreal documentation to set up everything for android platform on my Mac and it was all working fine. And to answer you, yes, I followed and downloaded everything according to the documentation and it was all working well. Now, I’m not sure how to open the SDK manager on my Mac. Has something gone wrong? Should I uninstall everything and reinstall from the scratch? How can these settings change? I’m totally lost. Kindly help!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [September 13, 2016, 4:53pm UTC](https://forums.unrealengine.com/t/unable-to-deploy-to-android/368730/10 "2016-09-13T16:53:46Z")

</div>

Make sure you downloaded all of the ‘Tools’ from the SDK Manager for Android on your Mac. That’s what should fix the error that’s showing up in your logs.

Can you upload screenshots of your SDK Manager? It should be located in your folder.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_17c6500f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_17c6500f](https://forums.unrealengine.com/u/anonymous_user_17c6500f)\
**Post date:** [September 23, 2016, 8:34am UTC](https://forums.unrealengine.com/t/unable-to-deploy-to-android/368730/11 "2016-09-23T08:34:49Z")

</div>

Hi ,

I finally managed to resolve the issue and this is what I did. I created an empty project and migrated my level and packaging worked fine for Android from this new project. But if I go back to my old project and deploy it to Android then it’s not working again! Thanks for your help.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [September 23, 2016, 5:41pm UTC](https://forums.unrealengine.com/t/unable-to-deploy-to-android/368730/12 "2016-09-23T17:41:02Z")

</div>

I’m glad you were able to resolve this issue on your own by migrating your files. Let us know if you need any other assistance!
