We assume that we want to setup Flutter on a modern Debian based Linux distro. Like Debian, Ubuntu, Mint, etc. We also assume that the Flutter version you are trying to install is 1.22.5
, or similar. In the future, things might change for Flutter. Last assumption, is that you are running Bash. If some of the assumptions are wrong, you might have to adapt the below steps.
sudo apt install -y virt-manager virt-viewer qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils
You need the Flutter SDK. Go follow the official Flutter installation instructions. When you get to the step of running flutter doctor
, stop, and do all the remaining steps in this HOWTO.
Install Android Studio from official Android Studio site.
When you can run Android Studio, go to Configure -> Plugins
, and install the Dart
and Flutter
plugins.
Restart Android Studio, create a new Flutter based project, and try to run it in the Android simulator. You should be able to.
Install and configure JAVA version 8. This is required for the current Flutter version. You can do:
sudo apt install openjdk-8-jdk openjdk-8-jre
~/.bashrc
file:export PATH="$PATH:/home/valera/bin/flutter/bin"
export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/"
export ANDROID_SDK="/home/valera/Android/Sdk"
export PATH="$ANDROID_SDK/emulator:$ANDROID_SDK/tools:$PATH"
flutter doctor --android-licenses
flutter doctor
emulator -noaudio -avd Pixel_3a_API_30_x86
(assuming that Pixel_3a_API_30_x86
emulator is installed on your system)
This howto is part of a larger collection of howtos maintained by the author (mostly for his own reference). The source code for the current howto in plain Markdown is available on GitHub. If you have a GitHub account, you can jump straight in, and suggest edits or improvements via the link at the bottom of the page (Improve this page).
made with ❤ by Valera Rozuvan