> For the complete documentation index, see [llms.txt](https://docs.motar.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.motar.com/welcome/motar-tutorials/learn-to-fly-ufo-xr-app-build-tutorial/build-the-application.md).

# 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="/files/jb1rygOlzFVFAgTNkeoU" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/EvNgRGFhXTJNjIYuBdLS" alt=""><figcaption></figcaption></figure>

* Scroll to Identification

<figure><img src="/files/RKAwQtgzAy7ZeKlrXPs2" 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 %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.motar.com/welcome/motar-tutorials/learn-to-fly-ufo-xr-app-build-tutorial/build-the-application.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
