Android SDK, NDK, JDK

Hey i just downloaded Android studio
to make a game into my android (Hawaii Y9)
so i need an ndk and jdk and sdk right?
i found alot of versions
what should i use?

Data:
im using UE5.3.2
My target phone: Hawaii Y9
My Android Studio: android studio flamingo | 2022.2.1 Patch 2 May 24, 2023
Game built in: Full-Blueprint (its have c++ by default engine but i didn`t used it)

Hey @user_e4af5306dc3668d4fabcf41c383ef7b774d656501864a7c1c2dd94 !

You should use the latest stable version of each, in my opinion. :slight_smile: However, if you want it to work on older versions of Android at the cost of stability you could use an older versionā€¦ Though I think itā€™s generally accepted to only go up to 2 versions back.

Hope that helps!

there are the recommended versions. found them using this unreal android setup at DuckDuckGo

you might not need a specific jdk unless you use something weird (i found that for wave vr i needed openjdk 11)

hey !
i searched for ā€œunreal android setupā€
but i didnt found anything about the version part theyre saying something like:
download android studio and then download sdkcommandline
but idk which version of it
and i mean something like this
21.34.314.5 this is not it, its just an example

and inside ue5.3.2 i found in the anrdoid section
requ ā†’ r25b version
and i searched what is that version and i have found its
ā€˜25.1.8937393ā€™
and i downloaded it and now im trying to extract the game!

its extracting so after it done and after the test, i will let you know what i got and what i did

2 Likes

i see. it really depends on the editor version and the app versions.
itā€™s a bit of a headache. there are a few thread posts and youtube videos that go into that details.

what i could tell you is that installing anything ā€œlatestā€ is bound to have trouble when it auto-updates and breaks something.

itā€™s an ecosystem so all parts need to work with eachother.

for example on my machine iā€™m using
ue 5.2
openjdk 11 *1
android api 29 and or 25 (cant remember)
sdk build tools 34 33.0.3 32 30.0.3 29.0.3 25.0.3 (i think i only need one. but i havent dared to experiement which one)
ndk 25.1.xxxx and 21.4.xxxx (you only need one. this i think is the most problematic, i think 25.1 is the biggest you can get with 5.2)
command line tools 8.0
cmake 3.10.xxxx
android studio 4.0.2

very important to note this is for 5.2, it probably works just fine on 5.3 but iā€™m confident some versions could be upgraded. including android studio. iā€™ll start by installing the recommended android studio, which i assume you already have.

*1 you donā€™t need openjdk 11, i had to because wave vr needs something >= openjdk11 and unreal canā€™t go much higher than (i think 17)
you could use the android studio jdk for most cases iirc

just a basic search on youtube got me to a decent video
https://www.youtube.com/results?search_query=unreal+android+setup

havent watched it but seems ok

Yep its actually true after testing about 12 hours (not kidding its 12 hours)
i found that:

Java: 11+
NDK: 25.1.8937393
SDK Version:
this is the sdk that you`ll use to work on an android system, something like version
so if ur device like mine
Hawaii Y9 ā†’ its uses Android 8 - 9
so i just tryed on high level like 33 and its gave me an error (on my phone)
ā€˜Preparing faildā€™ or something like that so i tried
8 ā†’ 27 or 28 not sure
and it works!!
Thanks guys!

yeah! iā€™m happy you got it. this is the most difficult part unfortunately. but luckly you got it.
unfortunately android stuff is an ecosystem of versions and itā€™s quite tricky to get it right.
ue, as any other software, has a limit as to the highest version they can go with. thatā€™s why i said that anything ā€œlatestā€ will eventually break. nothing is fully future proof (imnsho).
so some versions might not even work with ue. i canā€™t remember whatā€™s the highest but i think 33 might be too high. but as you say it also depends on the device.
the max i got out of 5.2 and htc wave vr is sdk 29 or 26.

good job :+1:

1 Like