Prerequisites
- Android Studio with Android SDK
- Node.js v20+
- npm package manager
Available emulators
Recommended Android Virtual Devices (AVDs):Quick commands
Start the emulator
Check connected devices
Run your Expo app
Port forwarding (if needed)
Open Expo Go manually
Environment variables
Your~/.zshrc should be configured with:
Restart your terminal or run
source ~/.zshrc for these to take effect.Troubleshooting
Emulator Not Starting
Emulator Not Starting
If the emulator doesn’t start, make sure Android Studio is properly configured:
- Open Android Studio
- Go to Tools → AVD Manager
- Check that your virtual devices are listed
- Click the play button to start one
App Not Loading
App Not Loading
- Make sure the emulator is fully booted (you can see the Android home screen)
- Check that adb can see the device:
adb devices - Restart the Expo dev server:
npx expo start --android - Set up port forwarding:
adb reverse tcp:8081 tcp:8081
Port Already in Use
Port Already in Use
If you get a port conflict:
HAXM/KVM Issues
HAXM/KVM Issues
For hardware acceleration issues:macOS (Intel):macOS (Apple Silicon):
Hardware acceleration is native - no additional setup needed.Linux:
Creating a new AVD
1
Open AVD Manager
In Android Studio, go to Tools → AVD Manager or click the phone icon in the toolbar.
2
Create Virtual Device
Click Create Virtual Device.
3
Select Hardware
Choose a device definition (e.g., Pixel 4) and click Next.
4
Select System Image
Select an Android version (API 33+ recommended). Click Download if not already installed.
5
Configure AVD
Name your AVD and adjust settings as needed. Click Finish.