Unreal Engine V4.14

I Cannot Deploy to Android

The Specific Issue: You are unable to install Codeworks for Android (either hangs at installation or prompts an error) and/or unable to deploy to Android using Unreal Engine via OSX Sierra V 10.12.3

I am writing this tutorial as all found fixes that I discovered online did not work for me, they also offered a very complicated alternative to what I discovered. I cannot say that this will work for you, only that this worked for me. I would definitely say it is worth trying, considering how little time this takes.

Important note: I installed Unreal Engine via the Epic Games website and launcher, not Github.

1: Java must be installed.

I first uninstalled Java. If unsure, uninstalling java instructions can be found here: https://www.java.com/en/download/help/mac_uninstall_java.xml

I then installed Java versions 6, 7 (Links retrieved from here: https://docs.unrealengine.com/latest/INT/Platforms/Android/GettingStarted/1/index.html ) and latest (retrieved from here: https://java.com/en/download/ ) in that order.

I then installed the latest Java SDK from here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

2: Restart your mac.

3: Remove all previously installed Codeworks for Android files.

I removed all files from any previous attempts at installing Codeworks for Android. Hidden files will have to be set such that you can see them. If unsure how to do this, look here: http://www.wikihow.com/Show-Hidden-Files-and-Folders-on-Mac-OS-X

Navigate to the file paths that Codeworks for Android sets, these can be found by running the Codeworks for Android installation, before you go through the installation process, it tells you the file paths. Navigate to these and delete the folders.

4: Ensure that you use the Codeworks for Android file given to you by Unreal Engine, not something found online.

What I found is that using a Codeworks for Android version obtained online yields an error during the installation process. Instead, I used the version given to you by installing Unreal Engine. The installer needed can be found in your Users/Shared/UnrealEngine/… directory. Use the Unreal Engine guide to navigate further ( https://docs.unrealengine.com/latest/INT/Platforms/Android/GettingStarted/1/index.html ), you are looking for a folder labelled: Extras/AndroidWorks/Mac, you will find what you need there.

5: Run Codeworks for Android.

Now you can run Codeworks for Android (it doesn’t matter if the version is 1R5). Carry on through, then when you get to the components list, make sure to choose the 1R4u2 version in the top left of the window. Choose ‘Standard’ top right. The installation was successful for me at this point.

6: Reboot your Mac.

7: Run Unreal Engine and start packaging.

At this point, you can run Unreal Engine. Ensure that in the project settings Android SDK menu, you have the first three directories: SDK, NDK, and ANT, left empty. Make sure all your settings are in line with the Unreal Engine tutorial which I have linked a couple of times already.

You should now be able to package your application successfully with Android. (I have successfully packaged with these steps using the texture ETC2).

I hope this helps, I feel your frustration!