If Unity fails to build when your Quest is set as Run Device in Build Settings, check the error message in the Console window. A common error is that the version of Android in the Player settings is too low for the version of Android on the device.Â
For example, the first time I tried to build for a Quest, I got this error:
Error building Player: Android Minimum API Level must be set to 23 or higher for the Oculus XR Plugin.
It was resolved by opening the Project Settings window (menu: Edit | Project Settings) and increasing Minimum API Level to the number stated in the error message. You can do this in the Player section and by modifying the Other Settings values:
Figure 15.27 – Setting Minimum API Level of the Android version in the Player settings