Community Tutorial: Unreal Engine 5.6.x for Meta Quest VR

@PONO You’re partly correct. In this case the challenge is more around the fact that our configuration needs to be suitable for use on shared classroom computers, so for us default paths need to be changed away from the normal user profile locations. We also wanted to avoid using Oracle Java due to their punitive licensing arrangements, so in my case I chose the Microsoft OpenJDK (as we’re mainly a Windows organisation, so I figure the Microsoft one will have best compatibility with our environment).

Regardless of this I wouldn’t have got this far without @antinnit ‘s helpful guide, so I’m grateful for that. Now I just need to improve our setup process so we can mass deploy to a classroom of computers.

Hello, I followed the steps and now I am trying to make a build: “**Build Quest APK”
**
However, when I click Platforms → Android → Package Project, it tells me:
”The SDK for Android is not installed properly, which is needed to generate data. Check the SDK section of the Launch On menu in the main toolbar to update SDK.”

In Project Settings, I have correctly setup paths to SDK, NDK, Java, and set the SDK and NDK api level.

Try NDK API Level: android-34, see if that helps?

Project Settings > Platforms > Android
Project Settings > Platforms > Android SDK

Are different locations :slight_smile:

I’m not familiar with your full environment, but this method worked for me using Microsoft OpenJDK. I also structured it around environment variable paths to make it easier to reproduce consistently across a lab setup.

Download

Microsoft Build of OpenJDK 21: Download the Microsoft Build of OpenJDK | Microsoft Learn

I recommend installing all this to the C: drive using fixed machine-wide locations

JDK 21.0.3

Run the Microsoft Build of OpenJDK 21 installer. Install into the standard machine-wide lab location (for example C:\Program Files\Microsoft\jdk-21).

JAVA_HOME

  1. Press Start on Windows
  2. Type “Environment Var…”
  3. Open “Edit the system environment variables”
  4. Click “Environment Variables”
  5. Under System variables, locate or create JAVA_HOME
  6. Change to C:\Program Files\Microsoft\jdk-21
  7. Press OK, and Apply

Android Studio Koala

  1. Open Tools > SDK Manager
  2. Change Android SDK Location to the standard lab path, for example C:\Android\Sdk
  3. Install the required SDK / NDK / build-tools packages into that location

Unreal SDK Setup; SDKConfig

  1. Project Settings > Platforms > Android SDK
  2. SDK: C:/Android/Sdk
  3. NDK: C:/Android/Sdk/ndk/26.1.10909125
  4. Java: C:/Program Files/Microsoft/jdk-21
  5. SDK API Level: android-34
  6. NDK API Level: android-34

You’ll still need the other steps from the guide, just with these small adjustments. Hope that helps.

@antinnit yes this is exactly what I did (except in a command line manner so I can do mass deployment).

Another wrinkle: putting the Meta plugins into the project folder is not just recommended, it is required - turns out the package fails to build otherwise.

Cool, glad you’re up and running. I put the plugins in the project folder mainly for version control and to keep track of which plugin belongs to which project.