UE 5.5 Android Packaging Failed. Error Unknown

Like the title says, I’m trying to package my game for android in Unreal 5.5, but I can’t seem to get it working. I’ve followed the official documentation on how to set it up, both the turnkey and advanced versions, and everything looks fine, but it’s still not working. I have the correct versions of android studio, sdk, ndk, and jdk installed, and the paths have been set up properly, environment variables are also correct.






Here’s the error log
UBA-HandleWithCare-Android-Development_2.txt (12.7 KB)

I noticed it says it couldn’t find the NDK API ‘android-34’, but I’m not sure why that is. As I’ve shown, it is installed, and the path should be set up properly. Changing my NDK API level to latest allows packaging, but when installing the APK onto a VR headset it says it requires sdk version 34 and that I’m currently on version 32, which isn’t installed anywhere

It’s worth mentioning I am setting up a simple VR build using the VR template, and that I’m not too familiar with unreal so I might be missing something obvious. Any help would be extremely appreciated!

Just try and change the NDK API level to “android-25”. If you need to built for a specific Android version you can change this at 'Platforms/Android/Target SDK Version in the project settings

Tried this and the build went through, but again when trying to install the APK it requires sdk version 34
image


I Assume that you changed the target SDK version to 34 already. You could also try to update the NDK to a higher version, I’m not sure if the current NDK r25b still supports API34.

I’ll try, I’m just looking at the official documentation and that’s what it says it needs. I also tried using the turnkey which automatically downloads what UE needs, both on my computer and on a different one where I hadn’t tried this before and it still didn’t work

I am also trying to get the 34 api to build with unreal 5.5 if you figure it out please do post a solution I will do the same.

These are my settings and checking the log file it looks like it is using 34 so I think this should be the solution. Hopefully you can confirm. I think you might need to install the 28 ndk (side by side) to match my setup also. Good luck, let me know if it works.

Try upgrading java to jdk 17. It worked for me

1 Like

This is an excellent solution. Thank you!

Ok so the actual solution to my problem was that I needed the android API 32 for Quest 2 development despite what the documentation recommends. This allowed the packaging to go through and proper installation on my headset