How to install Flutter on Android Studio 2022 for beginners

Flutter, Flutter Crash Course

Flutter Series Overview – Brief

Errors in Flutter Installation

This is the second tutorial of Flutter Crash Course. In this tutorial we will learn how to install flutter in Android Studio. In our first tutorial we cover the overview of our series and you can check it out here. We will install Flutter on Windows using Android Studio IDE step by step as mentioned here. So to install flutter we need pre-requisite and will cover the whole process in 4 main steps.

System Requirements

To install and run Flutter, your development environment must meet these minimum requirements:

  • Operating Systems: Windows 7 SP1 or later (64-bit), x86-64 based.
  • Disk Space: 1.64 GB (does not include disk space for IDE/tools).
  • Tools: Flutter depends on these tools being available in your environment.
  • If Git for Windows is already installed, make sure you can run git commands from the command prompt or PowerShell

Watch Youtube tutorial

 

1. Get the Flutter SDK

  1. This is the first step in which we have to download the flutter SDK from this link.
  2. Extract the zip file and place the contained flutter in the desired installation location for the Flutter SDK (for example, C:\\Src\\flutter).
  3. Create Src folder inside C:\\drive and paste the unzipped flutter folder inside C:\\Src\\

Warning: Do not install Flutter in a directory like C:\\Program Files\\ that requires elevated privileges.

2. Setup Flutter Environment Variables

In this step we will setup env or environment variables on our windows so we can run flutter commands on command prompt or powershell. So, basically there are two environment variables that we have to create Flutter SDK & Android SDK.

  1. Open environment console by typing env in the search bar in the windows search and open Edit The System Environment variable.
  2. Setup Path variable by creating new or if already created edit the path variable and set the path of above flutter folder (C:\\Src\\flutter\\bin).
  3. Next setup JAVA_HOME (Note: If it does not work try ANDROID_HOME instead) variable in the environment same like path but in this variable value add the Android SDK as we did for Flutter SDK (C:\\Users\\taimo\\AppData\\Local\\Android\\Sdk\\)

Run Flutter Doctor

From a console window that has the Flutter directory in the path (see above), run the following command to see if there are any platform dependencies you need to complete the setup:

C:\\src\\flutter>flutter doctor

This command checks your environment and displays a report of the status of your Flutter installation. Check the output carefully for other software you might need to install or further tasks to perform (shown in bold text).

For example:

The following sections describe how to perform these tasks and finish the setup process. Once you have installed any missing dependencies, you can run the flutter doctor command again to verify that you’ve set everything up correctly.

Note: If flutter doctor returns that either the Flutter plugin or Dart plugin of Android Studio are not installed, move on to Set up an editor to resolve this issue.

3. Install Flutter and Dart Plugins

In this step we will setup / install our IDE Android studio and install flutter and dart plugins in it. As I’ve already create a detail tutorial on how to install android studio which you can check here.

Next to install Flutter and Dart plugins open IDE and from the left menu click on plugins. In the search bar search for flutter and hit install. Make sure you have an active internet connection. Flutter will auto popup a modal and ask your to install dart as well. So accept it and restart the IDE when download completed.

Tip: To check weather flutter and dart are in same folder run the command in the command prompt

C:\\Users\\taimo>where flutter dart
C:\\src\\flutter\\bin\\flutter
C:\\src\\flutter\\bin\\flutter.bat
C:\\src\\flutter\\bin\\dart
C:\\src\\flutter\\bin\\dart.bat

Flutter Crash Course Series

Check the whole series of flutter crash course. This series is available on both YouTube & on blog posts.

4. Agree to Flutter Licenses in the command prompt

Before you can use Flutter, you must agree to the licenses of the Android SDK platform. This step should be done after you have installed the tools listed above.

  1. Make sure that you have a version of Java 8 installed and that your JAVA_HOME environment variable is set to the JDK’s folder.
  2. If JAVA_HOME is not working then try ANDROID_HOME
  3. Android Studio versions 2.2 and higher come with a JDK, so this should already be done.
  4. Open an elevated console window and run the following command to begin signing licenses.

 flutter doctor --android-licenses

Let's Connect

Videos are always a better source for in-depth knowledge. So, connect with me at YouTube.

Download Project

Flutter Login App UI Source Code- How to Create a complete Flutter app - Flutter education app - Flutter app UI Design - Flutter Course - Flutter Complete App 2022
Dashboard Source COde - Dashboard design in flutter - flutter dashoard - flutter app design 2022 - Flutter UI - Flutter homepage

Latest Courses

Flutter Login App UI Source Code- How to Create a complete Flutter app - Flutter education app - Flutter app UI Design - Flutter Course - Flutter Complete App 2022
Learn flutter from scratch in 4 hours - Flutter Crash Course - Coding with T

Latest Tutorials

Flutter Profile page UI Design - Flutter app design 2023 - Profile Screen Flutter UI - Flutter 2023
Flutter Firebase phone authentication - Firebase Phone auth tutorial in flutter - Flutter Firebase phone number authentication 2022
Firebase Authentication in flutter - Flutter firebase authentication 2022 - firebase auth tutorial 2022 - firebase flutter auth
How to setup firebase in flutter 2022 - Flutter firebase setup
Dashboard Source COde - Dashboard design in flutter - flutter dashoard - flutter app design 2022 - Flutter UI - Flutter homepage

Join Our Mailing List

Join our mailing list to receive the latest, Free Courses, Video Tutorials, free codes and updates regarding Tutorials and services. You will also start getting coupons on the related services.

You have Successfully Subscribed!

FLUTTER APP

Learn Flutter App development from scratch. Create LOGIN APP that can be used with any application which requires Login Sign Up functionality.

You can watch it on YouTube or read and get source code from Blog Post.

You have Successfully Subscribed!