Hi all,
After some trial and error I’ve been able to successfully deploy a UE5 Early Access project to my Android device. I’m also using the latest Android Studio installer, which is 4.2.1 as of the writing of this post.
First off, install the latest Android Studio. Then, there is an included .bat script within each UE install which you need to run which automatically fills in your project settings with the Android SDK and NDK locations and downloads the proper NDK, which right now looks like it is r21. The .bat location will look like this:
C:\Program Files\Epic Games\UE_5.0EA\Engine\Extras\Android\
From UE docs: “In the event that you receive an error stating that repositories.cfg
cannot be loaded, navigate to the folder where it is expected (usually C:/Users/[Username].android/repositories
) and create an empty repositories.cfg
file. Android setup should then proceed normally.”
So now back in UE5, plug your phone into USB port and you should see it show up under platforms. If you now try to run it, you will probably get an error about SDK verification failed. My log looked like this:
ATHelper: Verifying SDK and Device (Android): It was not possible to find any compatible framework version
UATHelper: Verifying SDK and Device (Android): The framework ‘Microsoft.WindowsDesktop.App’, version ‘3.1.0’ was not found.
UATHelper: Verifying SDK and Device (Android): - No frameworks were found.
UATHelper: Verifying SDK and Device (Android): You can resolve the problem by installing the specified framework and/or SDK.
UATHelper: Verifying SDK and Device (Android): The specified framework can be found at:
UATHelper: Verifying SDK and Device (Android): - Download .NET Core 3.1 Runtime
UATHelper: Verifying SDK and Device (Android): BUILD FAILED
So after I followed the link and did the install, then the verification error went away.
If you get an additional error like this:
LogPlayLevel: A fatal error occurred. The required library hostfxr.dll could not be found.
LogPlayLevel: If this is a self-contained application, that library should exist in [C:\Program Files\Epic Games\UE_5.0EA\Engine\Binaries\DotNET\AutomationTool].
I also installed this runtime to address that error
But the previous 3.1.0 link might fix both of these issues.
Good luck!