# Build the Application

### Configuring Build Settings

* Open **File -> Build Settings**.
* Verify the following scenes are under **Scenes in Build**:
  * `MOTARDeviceSyncAndAuthentication`
  * `BarnScene`
  * `UFOScene`
* Remove **SampleScene** if present.
* Select **Android** as the platform and click **Switch Platform**.
* Navigate to **Edit -> Project Settings -> XR Plug-in Management -> Project Validation**.
* Click **Fix** on any errors regarding supported architectures.

***

### Configure Player Settings

* Open Edit > Project Settings
* Click on Player
* Update Company Name / Product Name / Version

  *(for this tutorial, **match** the entries listed below)*

<figure><img src="https://540871446-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVJV84grXWXSLppsAzVKx%2Fuploads%2FNuc82JmprJpoVI6Oahgt%2Fimage.png?alt=media&#x26;token=fbafbb15-73a6-487c-93cc-a6dba5b8c160" alt=""><figcaption></figcaption></figure>

* Ensure the Android tab is selected and scroll to **Other Settings**

<figure><img src="https://540871446-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVJV84grXWXSLppsAzVKx%2Fuploads%2FP4mKDcdFdyrOJxyR4bOe%2Fimage.png?alt=media&#x26;token=9c8ec81b-7697-45dd-b21d-b4a585ecb489" alt=""><figcaption></figcaption></figure>

* Scroll to Identification

<figure><img src="https://540871446-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVJV84grXWXSLppsAzVKx%2Fuploads%2F6rCKNWhBYub8AxaUkVjJ%2Fimage.png?alt=media&#x26;token=938ac16d-83de-41df-8c5e-d8820b8345eb" alt=""><figcaption></figcaption></figure>

* Ensure your Package Name is named "com.Dynepic.LearntoFlyUFO"&#x20;

{% hint style="info" %}
This name will be entered into the Studio listing distribution and is used to launch the app from MOTAR 3D

Unity auto generates this name based on the Company
{% endhint %}

### Building the Application

* Open **File -> Build Settings**.
* Ensure **Platform** is set to **Android**.
* Ensure **Active Input Handling** is set to **New** in **Player Settings**.
* Return to **Build Settings** and click **Build**.
* Enter a memorable file name and save the build.
* Unity will begin compiling the application (this may take several minutes).

{% hint style="danger" %}
BuildiBuilding or compiling an application for Android can be complex, often depending on your local system environment. If you encounter build errors, check the Unity console—it will point you to the exact issue and may provide helpful troubleshooting tips.
{% endhint %}
