Getting Started for Developers
Set up your XREAL AURA for development.
Prerequisites
Before starting, ensure you have:
- XREAL AURA (glasses + Compute Puck)
- A development computer (Windows, macOS, or Linux)
- Android Studio installed (latest stable version)
- USB-C cable (high-quality, data-capable)
- Google account for Play Store and services
Step 1: Set Up Android Studio
Install Android XR SDK
- Open Android Studio.
- Go to SDK Manager (Tools > SDK Manager).
- Select SDK Platforms tab.
- Check Android 15 (API 35) or later.
- Select SDK Tools tab.
- Install the following:
- Android SDK Build-Tools
- Android Emulator
- Android XR extensions (when available)
Install XR Emulator Profile
For testing without hardware:
- Open Device Manager in Android Studio.
- Create new Virtual Device.
- Select XR device profile.
- Choose Android XR system image.
- Configure with OST settings for XREAL simulation.
Step 2: Enable Developer Mode on Device
On your XREAL AURA:
- Go to Settings (Open Launcher > Settings).
- Navigate to About device.
- Tap Build number 7 times.
- You'll see "Developer mode enabled."
- Go back to Settings.
- Open new Developer options menu.
- Enable USB debugging.
Step 3: Connect Device to Computer
- Keep the glasses connected to the Glasses Port on the right side of the Compute Puck.
- Connect a USB-C cable from your computer to the Charging Port on the left side of the Compute Puck.
important
Both the Glasses Port and the Charging Port support full ADB debugging functionality. Using the Charging Port allows you to perform wired debugging while simultaneously viewing the display through the glasses.
Step 4: Build and Deploy Your First App
Create New Project
- In Android Studio, select New Project
- Choose XR Activity template (if available) or Empty Activity
- Set minimum SDK to API 35
- Select Kotlin as the programming language
Configure XR Dependencies
In your build.gradle.kts file:
android {
defaultConfig {
minSdk = 35
targetSdk = 35
}
}
dependencies {
// Add XR dependencies
implementation("androidx.xr:xr-compose:1.0.0")
// ... other dependencies
}
Deploy to Device
- Select your connected device from the device dropdown
- Click Run (green play button)
- Wait for the build and installation to complete
- Put on the glasses to view your app running
Next Steps
- Android XR Docs — Official platform documentation
Troubleshooting
| Issue | Solution |
|---|---|
| Device not recognized | Check your cable and try a different USB port |
| Status shows "Unauthorized" | Tap “Allow” in the USB debugging prompt on the device |
| Build fails | Update Android Studio and SDK platform tools |
| App crashes on launch | Check logcat for error details and stack traces |
| Cannot see glasses display | Re-plug the glasses after the ADB session ends |
Need more help? Visit the XREAL Developer Discord.