DevSetup

Flutter & Android Guide

Flutter & Android Setup

Complete guide for developers to set up Flutter, Android Studio, CLI AVD, and MSVC on Windows

1

Install Flutter (Windows)

Step 1: Download Flutter

Download: Flutter 3.41.6 Stable (Windows ZIP)

Latest stable release optimized for Windows development

Step 2: Extract to C:\flutter

C:\\flutter

Step 3: Add to PATH

Add to your system environment variables:

C:\\flutter\\bin

Step 4: Verify Installation

flutter doctor
2

Install Android Studio

Download and Install

Download from: Android Studio

During Setup, make sure you install:

  • Android SDK
  • Android SDK Platform Tools
  • Android Emulator
  • Intel HAXM / Hypervisor Driver

Configure SDK Path

flutter config --android-sdk "C:\Users\YourUsername\AppData\Local\Android\Sdk"

Accept Android Licenses

flutter doctor --android-licenses
3

Install SDK Components (CLI)

Open CMD and run:

sdkmanager "platform-tools" "platforms;android-33" "build-tools;33.0.0" "emulator"
4

Create AVD (Emulator)

Install System Image

sdkmanager "system-images;android-33;google_apis;x86_64"

Create AVD with Emulator

emulator -avd Pixel_4_API_33 -create-avd -skin Pixel_4 -system-image "system-images;android-33;google_apis;x86_64"

💡 Tip: You can also create AVDs directly through Android Studio's Virtual Device Manager for a GUI experience.

5

Run Emulator (Headless)

Optimized flags for best performance:

emulator -avd Pixel_4_API_33 ^
-no-window ^
-no-audio ^
-no-boot-anim ^
-no-snapshot ^
-gpu swiftshader_indirect

Flag Reference

  • -no-window → Run headless
  • -no-boot-anim → Faster boot
  • -no-snapshot → Clean start
  • -gpu swiftshader_indirect → Stable software rendering
6

Create Automation Script (.bat)

Create file: start_emulator.bat

@echo off
cd %LOCALAPPDATA%\Android\Sdk\emulator

emulator -avd Pixel_4_API_33 ^
-no-window ^
-no-audio ^
-no-boot-anim ^
-no-snapshot ^
-gpu swiftshader_indirect

pause

Optional CI-style flags:

-accel on\n-no-snapshot-load\n-no-snapshot-save
7

Verify Flutter & Emulator

flutter devices
flutter run
8

Install MSVC AIO Tool

What is it?

Microsoft Visual C++ Redistributable All-in-One bundles all VC++ runtimes (2005-2022) needed for development tools and emulators.

Installation Steps

  1. Download from GitHub: abbodi1406/vcredist
  2. Extract the downloaded file
  3. Run install_all.bat

Installs: VC++ 2005 → 2022 runtimes, required for development tools, emulators, and reverse engineering binaries

💡

Pro Tips for Speed & Performance

⚡ Speed Optimizations

emulator -no-snapshot -no-boot-anim

🔧 If Emulator is Slow

  • Enable Virtualization in BIOS
  • Use hardware acceleration flag:
emulator -accel on

🌉 WSL2 + Android Bridge

Connect from WSL2 to Android:

adb connect 127.0.0.1:5555

Final Verification Checklist

Flutter installed → flutter doctor
Android SDK + licenses accepted
AVD created via CLI
Emulator runs headless mode
.bat automation ready
MSVC runtimes installed

Next Steps

  • Run emulator inside WSL2 with GUI forwarding
  • 🚀 Integrate into CI/CD pipeline (GitHub Actions)
  • 🔐 Set up local automation for development workflow