# Packaging for Standalone

### Setup

#### Meta Plugin

The **Meta plugin** for Unreal helps configure the project quickly and easily and can be disabled after applying settings if you don't need it. The plugin should be available if you are using one of the SCiL workstations, but if you are building elsewhere, you can find the instructions here: [MetaXR Plugin](https://developers.meta.com/horizon/downloads/package/unreal-engine-5-integration/)

Additionally, the following may be helpful:

- <span style="font-size: 11pt; font-family: PalatinoLinotype; font-weight: bold;">Project Settings </span><span style="font-size: 11pt; font-family: PalatinoLinotype;">\| </span><span style="font-size: 11pt; font-family: PalatinoLinotype; font-weight: bold;">Platforms </span><span style="font-size: 11pt; font-family: PalatinoLinotype;">\| </span><span style="font-size: 11pt; font-family: PalatinoLinotype; font-weight: bold;">Android </span><span style="font-size: 11pt; font-family: PalatinoLinotype;">\| </span><span style="font-size: 11pt; font-family: PalatinoLinotype; font-weight: bold;">APK Packaging \| Package game data inside .apk?</span><span style="font-size: 11pt; font-family: PalatinoLinotype;">: True (useful for testing)</span>


#### Manual Settings

Visit [here ](https://scil-wiki.su.edu/books/unreal-engine/page/vr-settings-for-unreal-engine-45 "VR Settings for Unreal Engine 4/5")for manual settings.

#### Config

Under **Project Settings** -&gt; **Android SDK** -&gt; **SDKConfig** set the following (use the **3 dots** to choose the correct paths):

- **Location of Android SDK**: C:/Android/SDK
- UE 5.6-5.7 - **Location of Android NDK**: C:/Android/SDK/ndk/27.xxx
- **Location of JAVA**: C:/Program Files/Android/Android Studio/jbr

<p class="callout danger">Do not copy and paste above, set the actual folders using the **...** icon</p>

[![Screenshot 2025-10-10 135734.png](https://scil-wiki.su.edu/uploads/images/gallery/2025-10/scaled-1680-/screenshot-2025-10-10-135734.png)](https://scil-wiki.su.edu/uploads/images/gallery/2025-10/screenshot-2025-10-10-135734.png)

*This screenshot is **just** a sample. The final folder name for each setting may be slightly different than what you see above, based on different versions or releases. Again, use the ... icon to the right of each setting to choose the actual folders.*





### Building (in the SCiL lab)

<p class="callout warning">**DO NOT** run **Install Sdk** per the Unreal documentation on the SCiL workstations. They are configured differently.</p>

Typically, Unreal would be configured according to the documentation if you are building at home. But for the SCiL lab, Android SDKs have been configured for all users of the workstation.

Go to **Platforms** -&gt; **Android** -&gt; **Package Project**

You will get a warning popup about SDK Not Setup. Click **Continue**.

[![Screenshot 2025-10-10 140040.png](https://scil-wiki.su.edu/uploads/images/gallery/2025-10/scaled-1680-/screenshot-2025-10-10-140040.png)](https://scil-wiki.su.edu/uploads/images/gallery/2025-10/screenshot-2025-10-10-140040.png)

Select a **folder** (it is recommended to use a folder called **Builds** that is in the root of the project). This location will save for the next time you build too. You can then load your APK and OOB files to a headset via **Meta Quest Developer Hub**.

Common things to check if the project did not build:

- Ensure the SDK locations listed above are properly placed.
- Sometimes Gradle (the building tool) will fail because an instance is already running. Try the build again. If it persists, restart the computer (this removes the processes that may be running, especially if other users are using the machine and have logged out).





### Building (not in lab)

For the individuals who wish to build at home, ensure Android SDK for Unreal is setup according to this documentation:

[https://dev.epicgames.com/documentation/en-us/unreal-engine/set-up-android-sdk-ndk-and-android-studio-using-turnkey-for-unreal-engine](https://dev.epicgames.com/documentation/en-us/unreal-engine/set-up-android-sdk-ndk-and-android-studio-using-turnkey-for-unreal-engine)





### Additional Configurations

<iframe height="315" src="https://www.youtube.com/embed/y3xFZF9Nyt4?si=yRed1R5GRv_JCzcS" style="border: 0;" title="YouTube video player" width="560"></iframe>

Additional settings may be required depending on the standalone/deployment platform (such as AppLab or Oculus store)