Unable to deploy to Android

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 (25.5 KB)

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!

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

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/

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?!

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.

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 (25.3 KB)

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

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!

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.

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.

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!