03-27-2023 12:34 AM
Hello, first I want to say, UE is horrible, nothing works, you need to follow several tutorials for just starting a new project when Unity does everything itself. That's the second time I try to switch to UE but once again I think I will turn back...
That said, I followed these guides -that shouldn't exist- line by line :
https://developer.oculus.com/documentation/unreal/unreal-quick-start-guide-quest/
But when I try to package the project, it says that Android SDK is not installed properly, I click "continue" and it tries and fails to install the sdk he want. When I run the SetupAndroid.bat manualy I have no error, and success for each request.
Here is some logs:
UATHelper: Packaging (Android (ASTC)): Installed Sdk validity:
UATHelper: Packaging (Android (ASTC)): Android: (Status=Invalid, Allowed_Sdk=r25b, Current_Sdk=r25c, Allowed_AutoSdk=r25b, Current_AutoSdk=, Flags="InstalledSdk_InvalidVersionExists, Platform_ValidHostPrerequisites")
UATHelper: Packaging (Android (ASTC)): Will install 'Android SDK r25b'
UATHelper: Packaging (Android (ASTC)): ----------------------------------------------
UATHelper: Packaging (Android (ASTC)): Running 'F:\Program Files\Epic Games\UE_5.1\Engine/Extras/Android/SetupAndroid.bat android-32 30.0.3 3.10.2.4988404 25.1.8937393 -noninteractive'
UATHelper: Packaging (Android (ASTC)): ----------------------------------------------
UATHelper: Packaging (Android (ASTC)): ERROR: Command F:\Program Files\Epic Games\UE_5.1\Engine\Extras\Android\SetupAndroid.bat android-32 30.0.3 3.10.2.4988404 25.1.8937393 -noninteractive failed [Exit code 4, working dir = F:\Program Files\Epic Games\UE_5.1\Engine\Extras\Android]
PackagingResults: Error: Command F:\Program Files\Epic Games\UE_5.1\Engine\Extras\Android\SetupAndroid.bat android-32 30.0.3 3.10.2.4988404 25.1.8937393 -noninteractive failed [Exit code 4, working dir = F:\Program Files\Epic Games\UE_5.1\Engine\Extras\Android]
LogSlate: Window 'Turnkey' being destroyed
Message dialog closed, result: No, title: Turnkey, text: Do you want to attempt again?
It seems trying to install SDK r25b when I configured 29 everywhere, that very exasperating.
If someone can help me before I give up.
Thanks in advance
03-29-2023 09:02 AM
And it seems hard to get help...
04-14-2023 12:49 AM
Hey Gregory , i hope that you successed to solve your problem , if not , try to switch to another version of the Java Dev Kit , my project had the same issue and fixed it with this 🙂
Buuuuuut- now i have just a SDK error , but everything worked fine yesterday.
so yeah, UE sucks with android
04-14-2023 01:38 AM
Yes, I tried to follow other tutorials and switched to UE 4, I've been able to build the apk, but it fails to launch on the quest, I will wait one more year to retry...
04-26-2023 12:39 PM
Actually you have to look into this on your output
Will install 'Android SDK r25b'
Make sure u have installed NDK 25.1.8937393 using android sdk and select it in the unreal engine.
This will get rid of this error
09-02-2023 01:46 AM
Thank you this solved my problem.
09-04-2023 12:31 AM
Thank you... Worked for me!
11-01-2023 12:55 PM
Thanks mate that helps! And for Unreal 5.3 it's a new Android tutorial, hopefully, that will be helpful, video:
https://youtu.be/ypR_YsnJaJo?si=xaSxKJF2FDcjsybS
10-04-2024 07:17 AM
thank you very much, you save my day