# How to properly set up UE5 for Android development

**URL:** <https://forums.unrealengine.com/t/how-to-properly-set-up-ue5-for-android-development/673313>\
**Category:** Mobile\
**Tags:** unreal-engine, UE5-0, Android, question\
**Created:** [October 20, 2022, 7:01am UTC](https://forums.unrealengine.com/t/how-to-properly-set-up-ue5-for-android-development/673313 "2022-10-20T07:01:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![levtyrnov](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/levtyrnov/32/875963_2.png) [@levtyrnov](https://forums.unrealengine.com/u/levtyrnov)\
**Post date:** [October 20, 2022, 7:01am UTC](https://forums.unrealengine.com/t/how-to-properly-set-up-ue5-for-android-development/673313/1 "2022-10-20T07:01:27Z")

</div>

Hi!

Possibly a noob question. Totally new to UE, but not to development. I am unable to set up my project to run on an Android phone. I’m running UE 5.03 on a Mac (Monterey 12.6) and I have Android Studio set up (I’m quite confident it is set up properly as I’m using it daily for my other mobile projects).

I have the SDK, NDK and JDK installed. However, nothing shows up in the “Installed SDK” line in the launcher menu (Platforms → Android), and there’s a triangular warning icon next to the Android platform in that menu.

I’ve tried using the turnkey tool to set up the SDK, however I am unable to get it to work.

Here’s what it outputs when I click “Refresh platform status”:

> LogTurnkeySupport: Turnkey Platform: Android: ( **Status=Invalid** , Installed=, AutoSDK=, MinAllowed=r21a, MaxAllowed=r23a, **Flags=“Platform\_InvalidHostPrerequisites”** )  
> LogTurnkeySupport: Turnkey Platform: IOS: (Status=Valid, Installed=13.4.1, AutoSDK=, MinAllowed=11.0.0, MaxAllowed=13.9.9, Flags=“InstalledSdk\_ValidVersionExists”)  
> LogTurnkeySupport: Turnkey Platform: Mac: (Status=Valid, Installed=13.4.1, AutoSDK=, MinAllowed=11.0.0, MaxAllowed=13.9.9, Flags=“InstalledSdk\_ValidVersionExists”)

And this is the output of ‘turnkey -command=ListPlatforms’ (skipping the non-Android related parts)  
UATHelper: Turnkey (): Platform Information:

> UATHelper: Turnkey (): Platform: Android  
> UATHelper: Turnkey (): Installed Manual Sdk:  
> UATHelper: Turnkey (): Installed Auto Sdk:  
> UATHelper: Turnkey (): Allowed Sdk Range: r21a-r23a  
> UATHelper: Turnkey (): Valid Manual SDK Installed? False  
> UATHelper: Turnkey (): Valid Auto SDK Installed? False  
> UATHelper: Turnkey (): AllVersions Installed:  
> UATHelper: Turnkey (): Possible Full Sdks that could be installed:  
> UATHelper: Turnkey (): Name: Android SDK r21b  
> UATHelper: Turnkey (): Version: r21b  
> UATHelper: Turnkey (): Platform: Android  
> UATHelper: Turnkey (): Type: Full  
> UATHelper: Turnkey (): Installers:  
> UATHelper: Turnkey (): Allowed Device Software Range: -  
> UATHelper: Turnkey (): Devices:  
> UATHelper: Turnkey (): NO DEVICES FOUND!

The last line is puzzling to me as I am actually seeing my phone in the device manager and it shows up in the launcher menu (though also with the warning icon and no SDK detected).

Finally, when I run ‘turnkey -command=InstallSdk -platform=Android’ I get this:

> LogMonitoredProcess: Running Serialized UAT: [/usr/bin/env – “/Users/Shared/Epic Games/UE\_5.0/Engine/Build/BatchFiles/RunUAT.command” Turnkey -EditorIO -EditorIOPort=63577 -unrealexe=“/Users/Shared/Epic Games/UE\_5.0/Engine/Binaries/Mac/UnrealEditor.app/Contents/MacOS/UnrealEditor” -command=InstallSdk -platform=Android -nocompile]  
> UATHelper: Turnkey (): Running AutomationTool…  
> UATHelper: Turnkey (): Running bundled mono, version: Mono JIT compiler version 5.16.0.220 (2018-06/bb3ae37d71a Fri Nov 16 17:12:11 EST 2018)  
> UATHelper: Turnkey (): Setting up bundled DotNet SDK  
> UATHelper: Turnkey (): Start UAT Non-Interactively: ./AutomationTool Turnkey -EditorIO -EditorIOPort=63577 -unrealexe=/Users/Shared/Epic Games/UE\_5.0/Engine/Binaries/Mac/UnrealEditor.app/Contents/MacOS/UnrealEditor -command=InstallSdk -platform=Android -nocompile  
> UATHelper: Turnkey (): Parsing command line: Turnkey -EditorIO -EditorIOPort=63577 -unrealexe=“/Users/Shared/Epic Games/UE\_5.0/Engine/Binaries/Mac/UnrealEditor.app/Contents/MacOS/UnrealEditor” -command=InstallSdk -platform=Android -nocompile  
> UATHelper: Turnkey (): Using xbuild. Install Mono 5.0 or greater for faster builds!  
> UATHelper: Turnkey (): Log location: /Users/levtyrnov/Library/Logs/Unreal Engine/LocalBuildLogs/Log.txt  
> LogSlate: Window ‘Turnkey’ being destroyed  
> LogSlate: Window ‘Turnkey’ being destroyed  
> **UATHelper: Turnkey (): ERROR: Failed to update host prerequisites**  
> UATHelper: Turnkey (): Cleaning Temp Paths…  
> UATHelper: Turnkey (): BUILD SUCCESSFUL  
> UATHelper: Turnkey (): AutomationTool executed for 0h 0m 12s  
> UATHelper: Turnkey (): AutomationTool exiting with ExitCode=0 (Success)

I have not been able to find any information regarding this error message:

> ERROR: Failed to update host prerequisites

Could somebody point me in the right direction? Am I doing the wrong thing altogether? Any help is greatly appreciated.

---

<div class="post-metadata">

**Author:** ![christuusgnosis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@christuusgnosis](https://forums.unrealengine.com/u/christuusgnosis)\
**Post date:** [October 20, 2022, 7:13am UTC](https://forums.unrealengine.com/t/how-to-properly-set-up-ue5-for-android-development/673313/2 "2022-10-20T07:13:11Z")

</div>

you should be installing the sdk and ndk from within android studio using the sdk manager

I dev for quest  
for that I specifically have to use android studio 4, jre 8, jdk 8, ndk 21b-e, sdk29/30  
and dotnet 3.51  
I am not on a mac.  
but  
for me  
for the quest  
newer android studios don’t work  
if you have the sdk/ndk installed and jdk  
you can put the paths in project prefs android  
by hand

---

<div class="post-metadata">

**Author:** ![levtyrnov](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/levtyrnov/32/875963_2.png) [@levtyrnov](https://forums.unrealengine.com/u/levtyrnov)\
**Post date:** [October 20, 2022, 7:43am UTC](https://forums.unrealengine.com/t/how-to-properly-set-up-ue5-for-android-development/673313/3 "2022-10-20T07:43:27Z")

</div>

Hi! Thanks for the reply!

I tried installing SDK and NDK through Android Studio first, and setting the paths in UE manually. But I had the same results =[

I am using a newer Android Studio, though, and JDK 19 (the latest). Can somebody chime in on using these newer versions, please? Is it entirely impossible to have it working with the recent AS and Java? My other non-UE projects are already tied into the new AS, and downgrading would surely be a pain…

---

<div class="post-metadata">

**Author:** ![christuusgnosis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@christuusgnosis](https://forums.unrealengine.com/u/christuusgnosis)\
**Post date:** [October 20, 2022, 4:29pm UTC](https://forums.unrealengine.com/t/how-to-properly-set-up-ue5-for-android-development/673313/4 "2022-10-20T16:29:45Z")

</div>

I don’t think it works with the new ANDROID STUDIO  
This is what I am saying  
when Unreal compiles for android it uses gradle  
which is inside android studio  
the unreal tools are sending android 4 commands  
and they are looking for symbols and debugging tools inside of JDK 8 and both those sets of tools require jre 8

The tools in ue were written with AS 4 and JDK 8 in JRE 8.

If you want to dev for a quest in unity it is the same, you must use 2019f not 2022.

---

<div class="post-metadata">

**Author:** ![levtyrnov](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/levtyrnov/32/875963_2.png) [@levtyrnov](https://forums.unrealengine.com/u/levtyrnov)\
**Post date:** [October 21, 2022, 2:31am UTC](https://forums.unrealengine.com/t/how-to-properly-set-up-ue5-for-android-development/673313/5 "2022-10-21T02:31:24Z")

</div>

I see. Thanks for clueing me in. I guess I’ll have to set up another machine for UE specifically.

---

<div class="post-metadata">

**Author:** ![christuusgnosis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@christuusgnosis](https://forums.unrealengine.com/u/christuusgnosis)\
**Post date:** [October 21, 2022, 5:22am UTC](https://forums.unrealengine.com/t/how-to-properly-set-up-ue5-for-android-development/673313/6 "2022-10-21T05:22:00Z")

</div>

I don’t think they are exclusive  
I think you can put android studio 4 on a machine with the latest android  
but you have to have jre 8 running  
the jdk, ndk, and sdk are just libraries and tools  
if you have an ndk/sdk already installed you can redirect

---

<div class="post-metadata">

**Author:** ![levtyrnov](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/levtyrnov/32/875963_2.png) [@levtyrnov](https://forums.unrealengine.com/u/levtyrnov)\
**Post date:** [October 21, 2022, 6:19am UTC](https://forums.unrealengine.com/t/how-to-properly-set-up-ue5-for-android-development/673313/7 "2022-10-21T06:19:09Z")

</div>

I’m a bit paranoid that installing another AS side-by-side might mess up environment variables and whatever other settings that affect the build of my current projects.
