How To Set Up Android Studio/VS Code For Flutter 2021 (Complete Guide) In Ubuntu | Step By Step Tutorial
In this post, we're going to set up the android studio for flutter - Google’s most awaited UI tool kit for building
beautiful, natively compiled applications for mobile, web,
and desktop from a single codebase.
So a single codebase for making an application for multiple platforms.
Download flutter SDK from flutter.dev and after extracting it place the flutter folder inside it at your desired location like this:-
Open the terminal and Set the path up to the bin folder inside flutter:-
export PATH=$PATH:/home/himanshu/Desktop/fluttersdk/flutter/bin
Step 3:
Download java 8 and set JAVA_HOME and JRE_HOME path.
Run this command in terminal:-
sudo apt install openjdk-8-jdk openjdk-8-jre
It will download the java 8 package in /usr/lib/jvm/ and now set the JAVA_HOME and JRE_HOME path up to this location for this,
Run this command in the terminal:-
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export JRE_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre
Step 4:
Install flutter and dart plugin in the android studio.
Open android studio and Go to File ->Settings -> Plugins -> Marketplace.
Search flutter and click on install also click yes in order to install the dart plugin.
Step 5:
Go to Plugins -> Installed.
Enable all the plugins in the list i.e all the checkboxes must be checked.
Now, Restart Android Studio.
You can start making flutter projects.
Open visual studio code -> Go to Extensions and search flutter and click install this also installs the required Dart plugin.
Go to View->Command Palette and type flutter and select Flutter: New Project.
Now click on set up the path for flutter SDK and go to the flutter folder and press enter.
Now, Enter a project name, such as
hello_world
, and press Enter.Now you are ready to make your flutter applications.
If you face any problem or have any suggestion please comment it down we love to answer it.
Comment down what next topic you need a guide on? or Drop a message on our social media handle
Comments
Post a Comment