Install Flutter on Linux without Android Studio
- Able to install flutter on any linux based distro.
- Install flutter without android studio.
- Install android sdk toolchain and also for linux.
How to Setup Flutter on Linux
Download Flutter 3.0.5
Download Android SDK tools
Install JDK 17
sudo apt install synaptic
Step:1
Now open Synaptic and search Open JDK 17
Mark it and click on Apply Button. It will install JDK 17 and Set Java Home for you. Our first step is complete.
Extract Flutter and SDK
1. We have already downloaded our 2 resources file. Now on your User Home Directory create a new folder and name it Android. It will be set as Android Home later.
2. Go to Download Folder and Extract flutter_linux_3.0.5-stable.tar file to Android Folder.
3. Again Extract Sdk.zip to Android Directory. So our Android Folder will look Like this.
Set Path for Flutter and SDK
#Path provided with Orkitt Stracture
export PATH="$PATH:$HOME/Android/flutter/bin"
export ANDROID_HOME="$HOME/Android/Sdk"
export ANDROID_TOOLS="$HOME/Android/android-sdk/cmdline-tools/latest"
export ANDROID_PLATFORM_TOOLS="$HOME/Android/android-sdk/platform-tools"
PATH=$PATH:$ANDROID_HOME:$ANDROID_TOOLS:$ANDROID_PLATFORM_TOOLS:
All set, Now restart your Computer. We will verify our installation .
Verify Flutter Installation
flutter doctor
We have successfully installed Flutter, Android Sdk tool chain without Android Studio. Now You can develop android app using Flutter on your Linux. We don't install linux toolkit here, that's why this red warning. Don't worry it's not a problem. It's for missing Linux toolchain. Let's install additional softwares and linux tool chain.
Linux Toolchain Setup
sudo apt-get install adb clang cmake ninja-build libgtk-3-dev git -y
Watch On YouTube
Conclusion
Flutter provides a powerful and expressive development environment that makes it easy to develop sophisticated applications. Flutter has full support for native platform toolchains and can also run on top of a range of third-party cross-platform toolchains. In the next article we will install linux tool chain to develop native Linux app. If you are facing any issue , please leave us a comment , we will help you.