Test Android XR Apps with Emulators in Studio Rabbit 2
Step-by-step guide to set up and use stable Android XR emulators in Android Studio Rabbit 2 for glasses and headsets without physical hardware.
Android XR emulators for glasses, audio glasses, and display glasses reached stable status in Android Studio Rabbit 2. You can now create virtual devices, launch them from Device Manager, and test immersive or augmented experiences on your laptop. Custom environments, LED indicators, and a faster Pairing Wizard remove the need for physical hardware during early development.
The emulators sit alongside the stable Jetpack XR SDK libraries. You iterate on SceneCore content, ARCore geospatial anchors, or Compose Glimmer overlays, then validate visuals and interactions before you ever pair real glasses. See our guide to building spatial apps with Jetpack XR SceneCore.
Update Android Studio and create an XR virtual device
Open Android Studio and install the latest stable Rabbit 2 build via Help > Check for Updates. Rabbit 2 ships the stable XR emulators plus Bring Your Own Agent and other tooling.
- Open Device Manager (Tools > Device Manager).
- Click Add a new device > Create Virtual Device.
- Under Form Factor select XR.
- Choose XR Glasses, XR Headset, Audio Glasses, or Display Glasses.
- Select a compatible system image (Preview API for glasses in many cases) and finish.
The new AVD appears in the list. Start a host phone AVD first if you are testing wired glasses that require pairing, then start the glasses AVD. The improved Pairing Wizard connects the virtual phone to the virtual glasses more reliably than earlier previews.
Customize the environment and check hardware states
Once the emulator runs, open the Environments control. Select Custom Environment and load a 360-degree photo of a real room, or choose Camera to feed a connected webcam. This lets you preview how optical overlays or spatial UI look against actual lighting and surfaces instead of the default virtual space.
Hardware LED indicators on the virtual glasses now show microphone and camera states. Confirm the LEDs light when your app requests those permissions or when Gemini Live is active. Use the Environment Visibility slider on XR glasses to adjust dimming and verify contrast on additive displays.
These controls match the official emulator documentation. You can capture screenshots or record sessions for design review without leaving the IDE.
Run and iterate on your XR app
Build and deploy your project to the running XR AVD exactly as you would a phone emulator. The Layout Inspector gains XR support so you can inspect spatial panels and anchors. Use the emulator controls to rotate the view, walk through the scene with WASD, or toggle passthrough.
For agent-assisted work, connect an ACP agent through Bring Your Own Agent. The agent can read logs, trigger builds, and, with Android CLI, render related Compose previews headlessly. After visual checks in the emulator, push the same change set through Change Review if the agent generated large diffs.
Tips for productive XR testing
Keep the host machine within system requirements: recent Android Studio, sufficient RAM (16 GB+ recommended), and a supported GPU. Apple Silicon or recent Windows/Linux machines handle the XR emulators well.
Start with a single form factor. Test glasses overlays first, then move to full headset immersion. Custom environments reveal contrast problems that the default scene hides.
Pair the emulator workflow with the stable Jetpack XR libraries. SceneCore, ARCore for Jetpack XR, and the XR Runtime APIs are production-ready and backward compatible. Update your dependencies, then validate the same code path in the emulator.
Record a short session when an interaction feels off. The LED states and environment feed give you reproducible evidence to share with teammates or an agent.
Watch the official walkthrough
Conclusion
Stable XR emulators in Android Studio Rabbit 2 let you build and validate glasses and headset experiences from a laptop. Create the AVD, customize the environment with real photos or a camera feed, watch the LED indicators, and iterate. Combine the setup with the stable Jetpack XR SDK and your preferred agent to move from prototype to polished spatial UI without waiting on hardware.
Download the latest Rabbit 2 build, launch Device Manager, and start an XR virtual device on your next spatial feature.
Sources:
- Android Developers Blog: Your favorite agents are now integrated in Android Studio (28 Oct 2026)
- Android Developers Blog: What’s new in Android developer tools and performance at Android Dev Summit (28 Oct 2026)
- Android XR emulator documentation for glasses and headsets
Share this story