Prerequisites
Before running the app, ensure you have:- Android Studio Iguana or higher installed
- Android SDK (API 24 or higher)
- Android Emulator (included with Android Studio)
- Project successfully opened and Gradle sync completed
Option 1: Running on Android Emulator
Open Device Manager
In Android Studio, navigate to:This opens the Android Virtual Device (AVD) Manager where you can create and manage emulators.
Create a Virtual Device
If you don’t have an emulator yet:
- Click Create Device
- Select a device definition (Pixel devices recommended)
- Choose a system image:
- Recommended: API 34 (Android 14) or higher
- Minimum: API 24 (Android 7.0)
- Click Finish
Start the Emulator
- In Device Manager, find your virtual device
- Click the Play (▶) button next to the device name
- Wait for the emulator to boot up completely
The first boot may take several minutes. Subsequent starts will be faster.
Option 2: Running on Physical Device
Testing on a real device provides the best performance and user experience feedback.Enable Developer Options
On your Android device:
- Go to Settings → About Phone
- Tap Build Number 7 times
- You’ll see a message: “You are now a developer!”
Enable USB Debugging
- Go to Settings → System → Developer Options
- Enable USB Debugging
- (Optional) Enable Stay Awake to keep screen on while developing
Connect Device via USB
- Connect your phone to your computer using a USB cable
- On your device, authorize the connection:
- A prompt will appear: “Allow USB debugging?”
- Tap Allow or OK
- In Android Studio, your device should appear in the device dropdown
Common Emulator Issues
Emulator is very slow
Emulator is very slow
Solution 1: Enable Hardware Acceleration
- Windows: Install Intel HAXM or enable Hyper-V
- Mac: Ensure Hypervisor.framework is enabled
- Linux: Install KVM
- In Device Manager, click Edit (pencil icon) on your AVD
- Click Show Advanced Settings
- Increase RAM to at least 2048 MB
- Click Finish and restart the emulator
Emulator won't start
Emulator won't start
Check the following:
- Verify virtualization is enabled in BIOS/UEFI
- Close other virtual machines (VirtualBox, VMware)
- Update Android Emulator:
- Delete and recreate the AVD if corrupted
App doesn't appear on emulator
App doesn't appear on emulator
Try these steps:
-
Clean and rebuild the project:
-
Invalidate caches:
-
Check Logcat for errors:
Device not detected (physical device)
Device not detected (physical device)
On Windows:
- Install device-specific USB drivers from manufacturer
- Try a different USB cable
- Ensure USB debugging is enabled
- Revoke USB debugging authorizations:
- Reconnect and authorize again
Emulator Performance Tips
Next Steps
Understanding Fake Data
Learn how test data is structured in the app
Troubleshooting
Solve common development issues
