Home Tutorials Training Consulting Books Company Contact us

Get more...

This tutorial give instructions how to install the Flutter SDK.

1. About this guide

This tutorial gives an introduction into the Flutter framework

Other guides in this Flutter series explains the development with Flutter:

2. Installing Flutter

2.1. Installation procedure

To develop Flutter applications you need:

  • the Flutter SDK

  • the Android SDK for developing Android applications

  • XCode for developing iOS applications

Follow the installation instructions:

If you are using a Mac, please also follow the XCode installation procedure.

iOS apps can only be developed on macOS devices.

Currently some part of the Android SDK requires Java 8.

2.2. Test the Flutter installation with flutter doctor

To test your installation run the $ flutter doctor command.

The output should look like this:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.0, on Ubuntu 22.04.1 LTS 5.15.0-47-generic, locale en_GB.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2020.3) (1)
[✓] VS Code (2)
[✓] Connected device (2 available) (3)
[✓] HTTP Host Availability
1 If you’re not using Android Studio for development you can ignore these errors
2 Configuration of the editor will be covered later
3 Configuring devices for debugging will be covered later

The Android SDK requires you to sign SDK package licenses. This is relevant for publishing the app and $ flutter doctor will complain about this. You can run the command $ flutter doctor --android-licenses to view and accept the licenses.

If you get a Java exception when running the above command, ensure you shell is using Java 8 . You can check this with the $ java -version command. The $ flutter doctor --android-licenses command used to require Java 8 (not 9 or higher).

2.3. Special Note for Linux Users

If you are on Linux (Ubuntu, Fedora, Arch, etc.) you might need to install an additional package. The output of $ flutter doctor will show you the following message:

      Downloaded executables cannot execute on host.
      See https://github.com/flutter/flutter/issues/6207 for more information
      On Debian/Ubuntu/Mint: sudo apt-get install lib32stdc++6
      On Fedora: dnf install libstdc++.i686
      On Arch: pacman -S lib32-libstdc++5 (you need to enable multilib:

3. Links and Literature

Legal Privacy Policy Change consent