Install Flutter SDK on windows without Android Studio

Image for post
Image for post
Let me free !

To me Android Studio just a nightmare, as soon as I start it, and my PC start screaming endlessly, so I started a journey to find a way to install Flutter SDK without using or installing Android Studio, hence the following lesson come into existence.

All the commands in this tutorials are executed using windows command prompt, just run it from start menu, or hit <windows-key> + R then type cmd

Create the working Dir

To keep everything in single place we will consider the dir C:\Android as main working directory

Installing OpenJDK 8

Download Windows binaries from the following url:

Other releases:

extract it and rename the internal folder “jdk8u202-b08” to “openjdk” and copy it under “C:\Android” folder, so its path will be:

Installing Flutter SDK

Download flutter sdk latest version from following url:
extract it, and copy the folder with the name “flutter” to C:\Android folder, so the full path will be:

Installing Android command tools

Download Windows version of Android command tools from the following url:
extract it and rename the “tools” folder to “sdk”, then copy it under C:\Android folder, so the full path will be:

Set Some Environment variables

We need to define some environment variable which let the above tools know how to contact each other, form command prompt run these commands, one by one:

Download Android SDK

As you may already know the Flutter are based on Android SDK to work , so we need to download system images, platform tools, build tools, platforms, and emulator, by running the following commands:

Note1: the date I write this tutorials the latest version of the above images was 28, but I downloaded the previous one, so I can develop app for wider range of Android OS versions, you can run the command sdkmanager --list to see available images and choose whatever you want.

Note2: Make sure to accept any license that appear by pressing y then Enter, or nothing will be downloaded.

Accept the licenses

Android sdk images have licenses that need to be accepted, you do that with the command:

just press y then Enter for for every license.

Configure Flutter

configure flutter to know the dir of Android sdk path

Create the Emulator

Create a new emulator with the name “nexus” or choose the name you want:

answer with [no] to the showed question.

Run the emulator

Moment of truth

This command should give all green and ok, ignore the Android Studio complain, since this lesson is all about ignoring it in the first place.

Test flutter code

[Extra] Other Good Emulator commands

Run emulator using emulator command, it should be executed from inside C:\Android\emulator

This command is good to see error messages

Create an emulator based on real device features

you need to change the 30 with any other device id, you can see all available devices with the command:

Delete existed virtual emulator

List all already created virtual emulators

for more help

Written by

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store