How to Add Android Platform Support to a Self-Compiled UE5 Editor

Hello there @leotovey!

Indeed, since you compiled from source, Android support was not included in the initial setup. Checking with my peers, it should be possible to add platform support from the editor.

First of all, please install all relevant Android elements to work with UE (SDK, NDK, build tools, etc). The process can be followed from the UE documentation below:

With everything installed, we can move on to adding Android and recompiling the project:

  • In the editor, go to Edit > Project Settings > Platforms > Android, and set the paths for Android SDK, Android NDK, and Java JDK

  • Next, close the editor, navigate to your UE5 source directory, open your “Engine/Config/BaseEngine.ini” file, and ensure that the Android modules are enabled, should look like this:

[/Script/AndroidPlatformEditor.AndroidSDKSettings]
SDKPath=(Path="C:/Users/[Username]/AppData/Local/Android/Sdk")
NDKPath=(Path="C:/Users/[Username]/AppData/Local/Android/Sdk/ndk/[version]")
JavaPath=(Path="C:/Program Files/Java/jdk[version]/bin/java.exe")
  • Once that’s done, we need to regenerate project files, via running GenerateProjectFiles.bat, and recompile the project in VS, to include the Android modules.

  • Finally, open the resulting new project, and make sure that Android appears as an available platform in Edit > Project Settings > Platforms