Skip to content

Instantly share code, notes, and snippets.

@gugadev
Last active October 8, 2024 13:11
Show Gist options
  • Save gugadev/64ae74fe09c4b6058b473d6d9366afa9 to your computer and use it in GitHub Desktop.
Save gugadev/64ae74fe09c4b6058b473d6d9366afa9 to your computer and use it in GitHub Desktop.
Guide to setup flutter and android on Windows 10

Flutter setup Windows guide

No requires Android Studio 🥳



Pre-requirements

Install Android SDK

You can install the SDK without Android Studio following my updated guide here.

Install VSCode

Additionally, download and install Visual Studio Code. Once installed, install the dart and flutter extensions.

Flutter setup

Install

Download and extract the flutter SDK. Move the extracted folder into C:\Development. The final path must be:

C:\Development\flutter

Set Environment variables

Move into Windows Environment Variables and create a variable named FLUTTER_HOME and put as value the flutter installation directory:

C:\Development\flutter

Save. Now edit the path variable and add the following value:

%FLUTTER_HOME%\bin

Save changes and exit.

Configure

Once SDK is installed and environment variables are setted, check the setup we have until now:

flutter doctor

It will check six requirements:

  • Flutter SDK
  • Android SDK
  • Chrome browser (for flutter web)
  • Android Studio
  • Visual Studio Code
  • Connected device

The first time you run this command, you'll see that the second point have a warning. This happens because it is required to accept the Android licenses. Run this command and accept all them.

flutter doctor --android-licenses

The next point to check is the third point (Chrome browser). You just need to install it, but, in case you use another chromium based browser like Edge, set the CHROME_EXECUTABLE environment variable with the installation directory of your browser. In my case I'm using Edge, so, the value must be:

C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe

That's all. Now run flutter doctor again and all points should have a green check, except for the Android Studio check as shown the image below.

And that's all. Now you can start coding your flutter applications. Enjoy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment