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
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
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.
Extract files:
cd ~
tar xvf ~/Downloads/flutter_linux_*-stable.tar.xz
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
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
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
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
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.
nano ~/.bashrc
export PATH=$PATH:~/Android/Sdk/cmdline-tools/latest/bin
source ~/.bashrc
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
Let’s check again that Flutter dependencies are completed and the setup is successful.
flutter doctor
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.
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.
Top comments (0)