This Guide will walk you through to the installation of Flutter to your Linux Machine. We are not installing Android Studio, we will set flutter up to Visual Studio Code. Basically we need - Flutter , Java JDK , Andoid SDK Toolchain. So let's install.
Download Flutter 3.0.5
Download Android SDK Tools
Our all resources downloaded successfully. So first we will install Java Developement Kit (JDK) 17. For that, install synaptic package manager. It will help us to install JDK 17.
sudo apt install synaptic
Now open Synaptic and search Open JDK 17 and install it.
Now on your User Home Directory create a new folder and name it Android
Extact those resourse inside Android folder like this.
Set Path for Flutter and Android SDK
Let's set path to use Flutter and SDK globally. On user home directory , show hidden files from setting and find the bash.rc file and open it on a text editor and paste those line at the bottom, then save it and restart your PC.
#Path provided with Orkitt Stracture
export PATH="$PATH:$HOME/Android/flutter/bin"
export ANDROID_HOME="$HOME/Android/Sdk"
export ANDROID_TOOLS="$HOME/Android/android-sdk/cmdline-tools/latest"
export ANDROID_PLATFORM_TOOLS="$HOME/Android/android-sdk/platform-tools"
PATH=$PATH:$ANDROID_HOME:$ANDROID_TOOLS:$ANDROID_PLATFORM_TOOLS:
Install Adb and Linux Toolchain and VS Code
sudo apt-get install adb clang cmake ninja-build libgtk-3-dev git -y
Download Visual Studio Code Editor
Verify Flutter Installation
To verify our installation run this command.
flutter doctor

If you are facing any issue , please leave us a comment , we will help you. Read Flutter related article @Orkitt


Top comments (0)