Skip to content

How to work with Android in the Unreal

This is a guide about how to setup the android build to work with the samples.

References

There's some complementary information you can find useful in the Unreal documentation.

Setup Unreal Dependencies

  1. Open the Library in the Epic Launch.
  2. With the unreal installed, expand the menu in the side and open the options.
  3. After this enable the Android option and wait until it installs.

The images below shows how to handle the steps above.

epic-unreal-library.png
Epic Unreal Library
epic-unreal-options.png
Unreal Options

Run the auto installer for unreal android sdk

In order to facilitate the setup for Unreal-Android usage we added to the prepare_repo.sh a optional parameter that is --install-mobile-sdk.

Warning

You will need to run as a adminitrator in order to run all the processes required to install.

Note

The --install-mobile-sdk basically gets the version of your UProject and run the Turnkey command from unreal to install everything.

Please follow the extra steps in the unreal documentation to have everything ready.

Installing the Turnkey

The Turnkey will start to install all needed, for most cases you will need only the default. But bellow you can see as the default of the options should looks like.

unreal-sdk-android-turnkey.png
Default options

The Turnkey will ask you to setup the sdk manager, so follow the bellow steps.

android-command-tool-1.png
Command Tool Install
android-command-tool-2.png
Command Tool Install

First Setup

As metioned in the reference of the unreal, you will need to fix the issues and setup the information in the Project Settings / Platform / Android.

Note

Make sure to setup your company info before built.

unreal-android-setup-1.png
Fix Android Errors
unreal-android-setup-2.png
Fix Android Errors

Unreal UProject plugin

It will be required to have the AndroidFileServer enabled in the plugins in order to every thing to works after the built. This config can be found in the UProject file, or if you need, create it in the plugins zone.

unreal-files-server-enabled.png
File Server Enabled

Build the project

Once you setup every thing, you can follow the Android Development Prerequisites and run in your device.