Flutter Install in Linux
2 min readJan 20, 2021
- Download Flutter:
2. Extract Flutter Bundle…(Go to your download folder and type following command)
tar xf flutter_linux_1.22.5-stable.tar.xz
3. Update Path to add the Flutter SDK:
gedit .bashrc
Just scroll down to the bottom of the file and add the following PATH as shown in the image:
export PATH="$PATH:`pwd`/flutter/bin"
Replace `pwd` with the actual path. Since our Flutter SDK is located that i was download (at 2no point of this tutorial).
4. Check:
echo $PATH
flutter doctor
PATH has been successfully updated but still some issues that need to be resolved:
Solution:
5.
gedit .bashrc
add following two line:
export PATH="$PATH:/home/safaetul/Android/Sdk/platform-tools"
export PATH="$PATH:/home/safaetul/Android/Sdk/tools"
JDK can be installed on our Ubuntu system with the below commands:
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
6. Creating a New Application :
flutter create awesome_project
flutter run //Run Flutter
Successfully first application Run…
Other Command:
flutter devices //check connected device