You might encounter issues while creating virtual AI glasses devices or running your app's augmented experiences on the emulator. If you do encounter issues, see the sections on this page for help resolving common issues.
Some errors have multiple possible causes. This document lists some common errors and their fixes, but you might encounter the same error message for a different reason.
Can't pair emulators using Pairing Assistant
While pairing the emulators using the Pairing Assistant, the process fails.
Cause
The Pairing Assistant can't find both emulators or is having another issue while pairing.
Fix
Follow these steps to manually pair the emulators on the phone AVD:
In the Android Studio Device Manger, find the AI glasses AVD that you created and click Start.
Check that the AI Glasses AVD has fully launched. You'll see a "Pair phone to ..." message.
In the Android Studio Device Manger, find the phone AVD that you created to act as a host device for the AI glasses emulator, and click Start .
Check that the phone emulator has fully launched by waiting until you see the Home screen.
On the phone emulator, launch the Glasses app
Select Set up Glasses.
When prompted, select Grant permissions and accept the permissions request required by the Glasses Core app.
Select Begin Pairing on each app screen when prompted.
Select the AI glasses AVD from the list of devices.
The emulators now attempt to pair the devices.
During pairing, accept the association requests for both the Glasses and Glasses Core apps.
Select Next to finish the pairing process.
Emulator for AI glasses not pairing
While pairing the emulators, you encounter a message that says "Disconnected" or "Couldn't pair glasses" and the emulators won't pair.
Cause
The glasses emulator isn't in pairing mode.
Fix
- Stop the AI glasses emulator.
In the Android Studio Device Manger, find the AI glasses AVD and click Wipe Data in the overflow menu.
Paired emulators don't reconnect devices on relaunch
After initial pairing, the emulators don't reconnect the devices to each other when launched.
Cause
A connectivity issue is stopping the devices from reconnecting.
Fix
First, try the following method:
- Stop the phone emulator and the AI glasses emulator.
In the Android Studio Device Manger, find the phone AVD and click Cold Boot in the overflow menu.
Wait for the phone emulator to fully boot, and then relaunch the AI glasses emulator.
If this method doesn't work, follow these steps:
- Stop the AI glasses emulator.
In the Android Studio Device Manger, find the AI glasses AVD and click Wipe Data in the overflow menu.
On the phone emulator, launch the system Settings app.
Select Connected devices.
Find the AI glasses device and select Device details.
Select Forget > Forget device.
Pair the devices again.
AI glasses won't associate with phone
During pairing, the AI glasses won't associate with the phone.
Cause
A connectivity issue is stopping the Glasses Core app from detecting the AI glasses.
Fix
First, try forgetting the Bluetooth device and re-pairing:
- On the phone emulator, launch the system Settings app.
- Select Connected devices.
- Find the AI glasses device and select Device details.
- Select Forget > Forget device.
- Pair the devices again.
If this method doesn't work, follow these steps:
- Stop the AI glasses emulator.
In the Android Studio Device Manger, find the AI glasses AVD and click Wipe Data in the overflow menu.
Projected activity won't launch on emulator
Your projected activity won't launch on the AI glasses emulator.
Cause
An issue is preventing the activity from being projected to the display.
Fix
Follow the same troubleshooting steps as when the emulators don't reconnect the devices on relaunch.
Can't use Gemini Live on the AI glasses emulator
While trying to use Gemini Live on the AI glasses emulator, you see the following messages:
Cause
The Google app needs to be updated to the latest version (minimum required version is 16.46.63) on the phone emulator.
Fix
In the Android Studio Device Manger, find the phone AVD that you created to act as a host device for the AI glasses emulator, and click Start .
Open the Google Play Store app.
Search for "Google" and select the Google app.
Select Update.