Running on an Android Emulator (Auto-Rebuild & Toolchain Troubleshooting)
By Engineering Team•October 11, 2026•3 min read
1. Install Android Studio and Set Up Emulator
- Download and install Android Studio.
- Open Android Studio > Tools > Device Manager.
- Click
Create Deviceand follow the prompts to set up a new Android Virtual Device (AVD). - Start the emulator from Device Manager.
2. Enable Android SDK and Platform Tools
- In Android Studio, go to Preferences > Appearance & Behavior > System Settings > Android SDK.
- Ensure the latest SDK Tools and Platform Tools are installed.
3. Connect Flutter to the Emulator
- Open a terminal in your Flutter project directory.
- Run:
You should see your Android emulator listed.flutter devices
4. Run the App with Auto-Rebuild (Hot Reload)
- Start the app on the emulator:
flutter run - When you make code changes, save the file and press
rin the terminal for hot reload, orRfor hot restart. - For automatic hot reload on save in VS Code:
- Open Command Palette (⇧⌘P) > “Preferences: Open Settings (UI)”
- Search for
Dart: Hot Reload On Saveand enable it.
5. Troubleshooting
- If the emulator does not appear, ensure it is running and that your system recognizes it (
flutter devices). - If you encounter build issues, try
flutter cleanand thenflutter pub get.
Troubleshooting Android Toolchain Issues
Install Missing Android cmdline-tools
- Open Android Studio and go to Preferences > Appearance & Behavior > System Settings > Android SDK > SDK Tools.
- Check Android SDK Command-line Tools (latest) and install it.
- Alternatively, download from the command-line tools page.
- Extract and place the tools in your Android SDK directory (e.g.,
$ANDROID_HOME/cmdline-tools/latest). - Ensure the
ANDROID_HOMEenvironment variable is set:export ANDROID_HOME=~/Library/Android/sdk export PATH="$ANDROID_HOME/cmdline-tools/latest/bin:$PATH"
Accept Android Licenses
flutter doctor --android-licenses
Accept all prompts.