First make sure you have plenty of space available. 20GB should do.
Also make sure unzip, xz, wget, grep and openjdk-21 are installed. Make sure java-21 is the default java version.
-
Open your terminal.
-
Install the Flutter SDK: run
./scripts/install_flutter.sh -
Install the Android SDK: run
./scripts/install_android.sh -
Restart your terminal and run
whereis flutter && whereis sdkmanagerto check if the installation was successful.- If you see something like
/home/yourusername/flutter/bin/flutter, then the installation was successful. - If you see something like
/home/yourusername/android/cmdline-tools/latest/bin/sdkmanager, then the installation was successful.
If you don't see these paths, then something has gone wrong.
- If you see something like
-
Configure Flutter for Android development: run
./scripts/config_flutter.sh -
Open VSCode and install the Flutter and Dart extensions.
-
Click this the plus icon on the bottom right.
-
Select "Create Android Emulator".