3 minutes
Setting up a Flutter Development Environment on Ubuntu, Manjaro, Arch Linux Without Installing Android Studio

Setting up Flutter on Linux is pretty much straightforward. The official documentation is well detailed and numerous tutorials on the web explain how to configure a Flutter development environment on Linux. However, installing Android Studio is a major requirement as Flutter depends on several packages and libraries that ship with Android Studio.
A lot of people (myself included) prefer to use another editor such as Visual Studio Code instead of Android Studio to develop Flutter applications for various reasons, one of which is that VS Code is more lightweight than Android Studio. The main concern that follows is the “wasted” disk space due to Android Studio’s installation.
Being a minimalist, I decided to tinker around and after a few days of trial and error, I managed to get Flutter to work without installing or depending on Android Studio by writing some Bash scripts that automate the whole process.
Solution
Step 1: Install OpenJDK
Create a file install-jdk.sh
with the following contents:
Open a Terminal window and run the script as follows:
Step 2: Install Android SDK
Create a file install-android-sdk.sh
with the following contents:
Just like before, open a Terminal window and run the installation script as follows:
Step 3: Install Flutter SDK
Create a file install-flutter-sdk.sh
with the following contents:
Similar to the above steps, open a Terminal window and run the installation script as follows:
Accept all the licenses when prompted, and you should have a complete Flutter development environment without requiring Android Studio to be installed.
Note
Then, run the following command in a Terminal window and grant your phone permission to access the computer through ADB when prompted:
Comments
Please wait...