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.

The Android command line tools require a current JDK, which Android Studio bundles. No separate Java 8 installation is needed.

2.2. Test the Flutter installation with flutter doctor

To test your installation run the $ flutter doctor command.

The output should look similar to this. Versions and the list of detected tools depend on your system:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.47.1, on Ubuntu 26.04.1 LTS 7.0.0-34-generic, locale en_GB.UTF-8)
[!] Android toolchain - develop for Android devices (Android SDK version 37.0.0) (1)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Connected device (2 available) (2)
[✓] Network resources
1 Accept the Android licenses as described below
2 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 the command fails with a Java exception, check that the JAVA_HOME variable or the java on your PATH points to a current JDK, for example the one bundled with Android Studio. You can check this with the $ java -version command. Old Android SDK tools required Java 8, current tools do not.

3. Links and literature

Home Tutorials Training Consulting Books Company Contact us


Get more...