Flutter Installation: A Complete Guide
By Priya Shah · Published · Updated · 5 min read

Installing Flutter can feel like a small project of its own: you download the SDK, wire up platform toolchains, and then wonder why `flutter doctor` still shows red crosses. The good news is that the process is predictable once you know the order of operations and the handful of gotchas that trip up most developers.
This guide walks through a clean installation on Windows and macOS, how to verify each piece, and what to do when something breaks. Expect to spend 30–60 minutes on a fresh machine with a decent internet connection, longer if you also need to set up Android Studio and Xcode from scratch.
Download and Unpack the Flutter SDK
Head to the official Flutter releases page and grab the stable channel archive for your OS. Avoid cloning the Git repository unless you specifically need to switch channels often; the archive is faster and less error-prone. On Windows, extract to a short path like `C:\src\flutter` rather than deep inside `Program Files`, because long paths can break some build tools.
On macOS, unzip to `~/development/flutter` or `/usr/local/flutter`. Avoid spaces in the path. Once extracted, add the `bin` directory to your PATH. On Windows, use the Environment Variables dialog; on macOS or Linux, add an export line to your shell profile. Close and reopen your terminal so the change takes effect.
Run `flutter --version` to confirm the tool is on your PATH. The first run may take a minute while Dart downloads its dependencies. If you see a version number, the SDK itself is fine; the rest is about connecting it to platform toolchains.
- Use the stable channel archive, not a Git clone
- Short paths without spaces: `C:\src\flutter` or `~/development/flutter`
- Add `flutter/bin` to PATH and reopen the terminal
- Confirm with `flutter --version`
Set Up Android Tooling
Install Android Studio (or the command-line tools if you prefer a lighter setup). In the SDK Manager, make sure you have a recent Android SDK Platform (API 34 or 35 at the time of writing), the SDK Build-Tools, and the Platform-Tools. Accept the licenses with `flutter doctor --android-licenses`; this step alone fixes a large share of doctor errors.
Create at least one emulator with a modern system image, or connect a physical device with USB debugging enabled. Emulators with Google Play images are convenient, but for CI or low-RAM machines a plain AOSP image boots faster. If you use a physical device, verify it appears in `adb devices` before blaming Flutter.
In Android Studio, install the Flutter and Dart plugins. They give you widget previews, hot reload controls, and better error messages. You do not strictly need Android Studio to build Flutter apps, but it remains the most frictionless environment for Android on Windows.
- Accept SDK licenses: `flutter doctor --android-licenses`
- Use API 34 or 35 and keep Build-Tools updated
- Verify devices with `adb devices`
- Install Flutter and Dart plugins in Android Studio
Set Up iOS Tooling on macOS
iOS builds require Xcode, which is a multi-gigabyte download. Install it from the App Store, then run `sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer` and `sudo xcodebuild -runFirstLaunch` to accept the license and install components. Skipping the first-launch step often leads to cryptic CocoaPods errors later.
Install CocoaPods with Homebrew (`brew install cocoapods`) or the Ruby gem. For Apple Silicon Macs, make sure you are using the native arm64 Homebrew prefix; mixing Intel and arm64 tools is a classic source of “pod not found” failures. Run `pod --version` to confirm.
Open the iOS Simulator once from Xcode’s Devices menu so the runtime is fully installed. After that, `flutter devices` should list the simulator. If you plan to test on a physical iPhone, you also need a signing team in Xcode, which is covered in Apple’s own documentation.
- Run `xcodebuild -runFirstLaunch` after installing Xcode
- Use native arm64 Homebrew on Apple Silicon
- Boot the Simulator once before expecting Flutter to see it
- Configure signing for physical devices
Verify Everything With flutter doctor
`flutter doctor -v` is your single source of truth. It checks the SDK, Android toolchain, Xcode, connected devices, and IDE plugins. Read the output top to bottom; fix the first error before moving on, because later checks sometimes depend on earlier ones. A clean run shows green checkmarks or benign warnings only.
Common warnings include “Android license status unknown” (run the licenses command) and “CocoaPods not installed” (install via Homebrew). If doctor reports that Flutter is installed via a path with spaces, move the SDK. On Windows, also confirm that the Windows Desktop development workload is enabled if you want to run desktop apps.
Do not chase a perfect report if you only target one platform. If you are building Android-only, an Xcode warning is irrelevant. Focus on the toolchain you actually use, and keep the rest as future work.
Create and Run Your First Project
Run `flutter create hello_flutter` and open the project in your editor. The generated counter app is intentionally small; it is a quick way to confirm that hot reload, the build system, and your device connection all work. Start an emulator or connect a phone, then run `flutter run`.
The first build is the slowest: Gradle downloads dependencies and compiles the Android host, which can take 2–10 minutes depending on hardware and network. Subsequent hot reloads are near-instant. If the build hangs, check your Gradle and Java versions; Flutter’s templates expect a compatible JDK, typically 17 for recent releases.
Once the app launches, press `r` for hot reload and `R` for hot restart. If those work, your installation is complete. Before adding packages, run `flutter pub get` once to confirm pub can reach the network through any proxy you use.
- `flutter create hello_flutter`
- First build can take several minutes
- Use JDK 17 with recent Flutter templates
- Test hot reload with `r`
| Component | Approx. download size | Disk usage after install | Typical setup time |
|---|---|---|---|
| Flutter SDK (stable) | 1–1.5 GB | 2–3 GB | 5–10 min |
| Android Studio + SDK | 1–2 GB | 8–12 GB | 20–40 min |
| Xcode (macOS only) | 8–12 GB | 15–25 GB | 30–60 min |
| CocoaPods | Small | < 100 MB | 2–5 min |
| Emulator system image | 1–2 GB | 2–4 GB | 10–15 min |
Fix the Most Common Installation Problems
PATH problems are the most frequent issue: the terminal cannot find `flutter`, or an old version shadows the new one. Check with `which flutter` (macOS/Linux) or `where flutter` (Windows). If you use multiple shells, update the profile for the one you actually run. Restarting the terminal is not optional.
Android license and Java version mismatches come next. If Gradle fails with “Unsupported class file major version,” your JDK is too new or too old for the Gradle version in the template. Align them, or let Android Studio manage the JDK. For CocoaPods, deleting `ios/Pods` and `Podfile.lock` then running `pod install` fixes many transient failures.
Finally, proxy and firewall issues can block pub downloads or Gradle. If you are behind a corporate proxy, set `HTTP_PROXY` and `HTTPS_PROXY` in your environment and configure Gradle’s proxy properties. A quick `flutter pub get` on a fresh project tells you whether networking is healthy.
Keep the SDK Healthy Over Time
Run `flutter upgrade` every few weeks on the stable channel, and `flutter doctor` after each upgrade. Major Flutter releases occasionally require newer Android SDK or Xcode versions, so budget time for toolchain updates. Pinning a project to an older Flutter version is fine, but do it deliberately with a version manager rather than by accident.
Clean builds matter when things get weird: `flutter clean` followed by `flutter pub get` resolves many “works on my machine” issues. If you maintain both Android and iOS, keep an eye on Gradle and CocoaPods versions; they drift independently of Flutter and cause most long-term build breakage.
For a more thorough pre-flight routine, see our Flutter Installation Checklist for Windows and macOS. And once you start building real screens, you may wonder how much widget code is normal; our breakdown of how many widgets a typical Flutter screen uses gives you a realistic baseline.
- Use the stable archive, a short path, and a clean PATH entry before anything else.
- Accept Android licenses and align your JDK with the Gradle version in the template.
- On macOS, run Xcode’s first-launch step and use native arm64 Homebrew for CocoaPods.
- Treat `flutter doctor -v` as the source of truth and fix errors top to bottom.
Covers Kotlin, Jetpack libraries and Android architecture with a hands-on approach. Focuses on migration guides, database work and networking patterns for small teams.


