I’ve recently compiled the Unreal Engine 5 (UE5) Editor from the source code, and I am looking to add support for the Android platform. However, since my version was compiled directly from the source and not installed via the Epic Games Launcher, I can’t seem to install platform-specific support directly.
Could anyone guide me on how to proceed with adding Android platform support to my self-compiled version? Any steps or advice would be greatly appreciated!
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:
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