After many hours of trying to configure my Android and UE5, I’m stuck on the very last step.
When I try to launch the game on my Android, I got this message:
“Platform Android is not a valid platform to build. Check that the SDK is installed properly.”
Here is everything I did:
I have set my Android in Developer Mode and the USB mode in “File Transfer”
I have installed the Android drivers on my computer and the phone is well detected
I have installed the latest version of Visual Studio 2019 and the .NET components
I have installed JDK 8 (I also have JDK 18, but I read that JDK 8 was better for this)
I have installed Android Studio and the “SDK command tool (latest)”
I have used the “AndroidManager.bat” to create the NDK files
I have accepted all the Android licences after using the “flutter doctor” command
I have entered the pathes of SDK, NDK and JDK in Unreal project settings
And when I try to launch on my Android, everything runs fine until the very last second when I got the error message
Hello! I am trying to deploy on Quest 2 from a Macbook M1 and getting the same message.
Could you please help me in specifying all the SDK location (SDK, NDK and JDK) on my mac? Thank you so much
Your SDK and NDK are supposed to be installed via Android Studio in AppData.
Java is supposed to be installed in your Program Files.
I don’t know Mac, but you should have some equivalent folders (one where the data of your programs is saved and one where these programs are installed).
Maybe you can place your SDK and NDK at other locations, but I don’t know if it’s gonna work
In Unreal for the NDK, be sure to link the sub-folder that is inside the “NDK” folder, and not the “NDK” folder itself.
For Java, you should use Java 8. It seems that Java 18 is a little bit glitchy for a lot of people.
I’m almost done with my game and I have been confronted to at least 30 different errors and I managed to fix them all, so feel free to reply to this thread if you need some help
I have been trying for several days…
FINALLY able to export the APK!
I still get the popup “The SDK for Android is not installed properly” - but it still can export.
Im on a Macbook 2020 - Catalina
I tried the JDK folder - but it kept spatting out errors
Switched to the ANDROID - Jre folder (legend has it from other forums that - that one works too)
But for MAC - maybe its different to PC - and I had to go deeper - into the Contents/HOME
And now - it finally exported !
Hope it can help some peeps - on Mac…
Hey, yes I got it working to export from macOS and building an .apk file - but then after installing it on the oculus quest 2 i got the error that the app is constantly stopping…
Since none of this worked for me, another thing to take into account if all of your SDK, NDK and Java paths are correct and things still aren’t working or you are getting the “Check that the SDK is installed properly” message, try installing the .NET Core 3.1 Desktop Runtime installer (FOR windows problems only) and that should make it work.