Here is some Flutter installation steps, as I feel that some part still missing in the official flutter documentation.

Flutter Installation Steps

  1. Get the Flutter SDK

    this steps is simple, download, placed somewhere. link here
    flutter sdk

  2. Update your path link here

  3. Run flutter to make sure if path is recognized in cmd

  4. Download and install Android Studio Giraffe

    Android Studio Giraffe

    After installation, create a new project and ‘Run’. It will auto download and install neccessary components. An android emulator will be launch in the end.

  5. Run flutter doctor to check if Android Studio is there.

    flutter doctor

    If Flutter cannot locate it, run flutter config --android-studio-dir=<directory> to set the directory that Android Studio is installed to.

  6. Install command-line tool

    The easiest way is to follow instruction here:

    1. Open Android Studio
    2. Tools Menu, SDK Manager
    3. choose SDK Tools from inner panels
      sdk tool
    4. Tick Android SDK Command-line Tools and click ‘apply’
  7. Run flutter doctor --android-licenses and it should works

  8. Run flutter doctor to see if any component missing

  9. Open up your VS Code editor and install Flutter extension

    vs code extension

    you may have to restart VS Code after installation

  10. Run flutter create {your_app_name} to create your first project and opened it

  11. You shall see a Windows (windows-x64) tab at bottom right, click it

    devices

  12. A dialog will be prompt, you should see emulators, run it

    vs code popup devices

  13. After the emulator is ready, pressed ‘F5’ and your app shall build on the emulator. Whoorays!

flutter first app