Skip to content

Instantly share code, notes, and snippets.

@codedeep79
Last active November 19, 2025 02:22
Show Gist options
  • Select an option

  • Save codedeep79/58cf04e7dd989828158217304f5b5c0f to your computer and use it in GitHub Desktop.

Select an option

Save codedeep79/58cf04e7dd989828158217304f5b5c0f to your computer and use it in GitHub Desktop.
Install Flutter on Debian

Run System update

Let’s first run the system update command before installing Flutter, this will update all the already installed packages on our Debian Linux. In addition to refreshing the system repo cache.

sudo apt update

Install Dependencies

There are few tools and libraries required to use Flutter on Linux such as Debian. Hence, before moving further use the below-given command to install them:

sudo apt install curl file git unzip xz-utils zip libglu1-mesa clang cmake ninja-build pkg-config libgtk-3-dev

Download Latest Flutter SDK

Next, we need the Flutter SDK tarball file. That we can easily download from its official webpage. Here is the link. Visit the page and select the latest version of Flutter to download.

Install Flutter on Debian

Extract files:

cd ~ 
tar xvf ~/Downloads/flutter_linux_*-stable.tar.xz

Add the flutter to the environment path

nano ~/.bashrc
export PATH="$PATH:~/flutter/bin"

Once you confirmed the folder where you have extracted Flutter is in the Environment path, let’s verify Flutter command-line tools are working perfectly:

flutter --version

Check any missing dependency using- flutter doctor

Well, although we have completed the installation successfully along with the required dependencies. However, still in the case, something is missing to complete the setup, it can be pointed out using the Flutter’s doctor command:

flutter doctor

Get Chrome browser

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb

Install Android Studio on Debian

Open your browser and Download Android Studio for Linux. Visit the official page and then select the Tarball file.

cd Downloads
tar xvf android-studio-*-linux.tar.gz
sudo mv android-studio /opt/
/opt/android-studio/bin/./studio.sh

To create Android Studio icon, please follow the steps here: Link

Install Android SDK Command-line Tools

On your Android Studio Project, click on the File and then "Settings". Select Appearance & Behavior > System Settings > Android SDK > SDK Tools

Check the box given for “Android SDK Command-line Tools (latest)” and then press the OK button.

Add command-line tools to your environment

nano ~/.bashrc
export PATH=$PATH:~/Android/Sdk/cmdline-tools/latest/bin
source ~/.bashrc

Agree to Android Licenses

To use Flutter, the user must agree to the licenses of the Android SDK platform. Here is the command for the same:

flutter doctor --android-licenses

Check Again Flutter requirements

Let’s check again that Flutter dependencies are completed and the setup is successful.

flutter doctor

Set up an editor

To set up the editor, go to Android Studio open any project, click on the File, and then select Settings. There select “Plugins” and select Flutter to Install it.

Create Flutter Project

Now, create a New Flutter Project… Select Flutter and set the full path to its SDK. For that Just enter the path of the folder where you have extracted the Flutter.

@atakan
Copy link

atakan commented Jan 2, 2025

Thank you! This is excellent. The only thing I would add is that you do not get a "File" menu when you launch Android Studio, you actually need to start a project to get that (at least nowadays). This was very helpful to me. Thanks again.

@Solido
Copy link

Solido commented Nov 19, 2025

I've been successful with snap https://snapcraft.io/install/flutter/raspbian
Could this also apply to Debian?

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