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

  1. Download and install Android Studio.
  2. Open Android Studio > Tools > Device Manager.
  3. Click Create Device and follow the prompts to set up a new Android Virtual Device (AVD).
  4. Start the emulator from Device Manager.

2. Enable Android SDK and Platform Tools

  1. In Android Studio, go to Preferences > Appearance & Behavior > System Settings > Android SDK.
  2. Ensure the latest SDK Tools and Platform Tools are installed.

3. Connect Flutter to the Emulator

  1. Open a terminal in your Flutter project directory.
  2. Run:
    flutter devices
    You should see your Android emulator listed.

4. Run the App with Auto-Rebuild (Hot Reload)

  1. Start the app on the emulator:
    flutter run
  2. When you make code changes, save the file and press r in the terminal for hot reload, or R for hot restart.
  3. For automatic hot reload on save in VS Code:
    • Open Command Palette (⇧⌘P) > “Preferences: Open Settings (UI)”
    • Search for Dart: Hot Reload On Save and 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 clean and then flutter 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_HOME environment 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.

More Info