- Install snapd
Since the
Flutterpackage isn’t included in the Elementary OS repositories, I found it via theCononical Snapcraft (snap)package menagement system. So we’ll need to ensure that is installed:sudo apt install snapd - Install flutter
sudo snap install flutter --classic flutter sdk-path Add the
$FLUTTERPATH/binto the$PATH. In my case the path was located at~/home/user/snap/flutter/common/fluttervim ~/.config/fish/config.fish # # .... # set -gx FLUTTERPATH /home/user/snap/flutter/common/flutter set -gx PATH $PATH $GOPATH/bin $FLUTTERPATH/binRun
flutter doctorshows
[✗] Android toolchain - develop for Android devices ✗ Unable to locate Android SDK. Install Android Studio from: https://developer.android.com/studio/index.html On first launch it will assist you in installing the Android SDK components. (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions). If the Android SDK has been installed to a custom location, please use `flutter config --android-sdk` to update to that location.Installedthrough the elementary os app centerAndroid StudioAfter opening Android Studio, I completed the intallation wizard.Found the
Getting started with Flutter on Ubuntusudo snap install android-studio --classic flutter config --android-sdk=$HOME/Android/Sdk/ flutter config --android-studio-dir /snap/android-studio/current/android-studioI had to run
android-studio, go through the wizard, and open a new blank project before the tools were downloaded.Go a missing library error
# Does't work with JDK 11 # sudo apt install default-jre sudo apt-get install openjdk-8-jdkInstalled chrome using the Elementary OS App CenterCouldn’t figure out the path to the executableflutter doctor couldn’t find it
Went to
https://www.google.com/chrome/thank-you.html?installdataindex=defaultbrowser&platform=linux&statcb=0&defaultbrowser=1Run another command
flutter doctor --android-licensesMore deps
sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-devSince some of the installation only worked in Google Chrome, I followed the directions listed in the
Stack Exchange article.How to install Google Chrome?config.fishset -gx GOPATH $HOME/go set -gx FLUTTERPATH /home/user/snap/flutter/common/flutter set -gx ANDROID_SDK $HOME/Android/Sdk set -gx PATH $PATH $GOPATH/bin $FLUTTERPATH/bin $ANDROID_SDK/tools/binINSTALL_FAILED_INSUFFICIENT_STORAGE- Fix- INSTALL_FAILED_INSUFFICIENT_STORAGE on Android emulators
- Increase the internal storage