Targetting Android
This tutorial explains how to set up the plugin to target Android devices.
Prerequisites
Please follow the official Android setup guide for the Unreal Engine and make sure you can package and launch an Android game on a phone without using the plugin first.
Setup
- Follow the installation instructions for your development platform.
- Make sure that the Unreal Editor is closed.
- Download a plugin release for Android and unpack the plugin to the
Plugins
folder. The release version should match your development platform release. Say yes to any overwrite prompts. - Open your project in Unreal Editor.
- Tick the
Project Settings -> Platforms -> Android -> Advanced Build -> Disable libc++_shared dependency validation in all dependencies
checkbox.
UnrealBuildTool
It is also to necessary to enable linking libc++ dynamically on Android. The steps below explain how to do so on Unreal Engine 5.3 and Windows.
- Open your project in Visual Studio.
- Open
Programs/UnrealBuildTool/Platform/Android/AndroidToolChain.cs
. - Find the line
Result += " -static-libstdc++";
and comment it out or simply delete it.