Follow these steps to install Flutter, Java (OpenJDK), Android Studio, Chromium, and Visual Studio Code on Ubuntu 21.10.
We use Snap and APT to make it easy to keep these packages up-to-date.
Install the official Flutter Snap package with classic permissions.
sudo snap install flutter --classic
As of this writing, OpenJDK 11 is the default JDK on Ubuntu 21.10.
sudo apt install default-jdk
Install Android Studio via Snap with classic permissions.
sudo snap install android-studio --classic
Install the Chromium browser via Snap.
sudo snap install chromium
Next, set the
CHROME_EXECUTABLE to the Chromium installation path.
Assuming your default shell is
bash, add the following to
.bash_profile if it exists.
Note: you may need to log out and back in after running the following command.
echo "export CHROME_EXECUTABLE=/snap/bin/chromium" >> ~/.profile
Install the Visual Studio Code IDE via Snap.
sudo snap install code --classic
Open Visual Studio Code and install the Flutter extension.
Finally, verify that everything was installed correctly by running Flutter Doctor.
In this quick overview, we have installed a full Flutter development environment in Ubuntu 21.10.
I hope you enjoy seeing your ideas take flight with Flutter :-)