How to install flutter in android studio
In this tutorial, You will learn How to install flutter in android studio in mac and windows laptop. It is very simple process but you must have enough internet data plan to download all the packages and files. So before go to start please make sure you have it least 4 GB of data plan for a day. If you don’t have please get some Top-up Data and then start the flutter setup below. So without wasting the time let’s get started. Step by Step guide also available on flutter official documentation.
The setup is covered in two part. If you have windows operating system so please follow part 1 otherwise follow PART 2 for mac operating system. I am assuming you already have android studio installed on your system, but it is not the case, then first install the android studio by following the process.
Install Android Studio
- Download and install Android Studio.
- Start Android Studio, and go through the ‘Android Studio Setup Wizard’. This installs the latest Android SDK, Android SDK Command-line Tools, and Android SDK Build-Tools, which are required by Flutter when developing for Android.
Flutter Installation in Windows
Minimum system requirements for flutter development :
- RAM size at least 8 GB (But practically you need at least 16 GB RAM to work smoothly on flutter. Flutter is very heavy tool even the single flutter project size is minimum 350 MB)
- Storage Space on you system should be around 512 GB.
- If your system having graphics card then it will be added benefit for you.
Install Flutter SDK
Please visit flutter official link and download the “Flutter_Window_version_stable.zip“. Download file size will be around 750 MB. So it will take time. Once download complete please Extract the zip file and place the contained flutter
in the desired installation location for the Flutter SDK (for example, C:\src\flutter
).
Note : Do not install Flutter in a directory like C:\Program Files\
that requires elevated privileges.
Now you need to setup environment path for flutter directory. To do this, type ‘env’ in your search bar Or right click on my computer icon. Select — ‘Edit the system environment variables for your account’. If you don’t know show to set PATH please follow this answer how to set system environment path.
Test the flutter setup and version details. Open command prompt or open android studio and click on terminal tab on bottom toolbar. run the following command.
C:\src\flutter>flutter doctor
The following command will check for any missing and required files. if there are any platform dependencies you need to complete the setup, please download it once it promoted y system.
You can also run flutter version command to check all dependencies.
C:\src\flutter>flutter - version
Flutter Installation in Mac OS
Minimum system requirements for flutter development :
- Operating Systems: macOS (64-bit)
- Disk Space: 2.8 GB (does not include disk space for IDE/tools).
- Tools: Flutter uses
git
for installation and upgrade. We recommend installing Xcode, which includesgit
, but you can also installgit
separately.
Install Flutter SDK
I am assuming your system already have Xcode installed. If it is not the case so please install the xcode then install flutter(See below). Xcode installation is very easy. Just search xcode in apple store and click on install. The xcode download size is around 4 GB. Once xocde get installed, Please visit flutter official website and download the “Flutter_mac_version_stable.zip“. Download file size will be around 1.2 GB. so please make sure you have enough internet data. Once the download get completed, extract it to location — “User/username/Developer/” . The flutter folder contains bin folder. Add the flutter
tool to your path. Open terminal and run the following command:
export PATH="$PATH:`pwd`/flutter/bin"
You are now ready to run Flutter commands.
Run flutter doctor
flutter doctor -v
Run the following command to see if there are any dependencies you need to install to complete the setup (for verbose output, add the -v
flag displays a report to the terminal window). The Dart SDK is bundled with Flutter; it is not necessary to install Dart separately. Check the output carefully for other software you might need to install or further tasks to perform (shown in bold text).
For example:
[-] Android toolchain - develop for Android devices
• Android SDK at /Users/obiwan/Library/Android/sdk
✗ Android SDK is missing command line tools; download from https://goo.gl/XxQghQ
• Try re-installing or updating your Android SDK,
visit https://flutter.dev/setup/#android-setup for detailed instructions.
Once you have installed any missing dependencies, run the flutter doctor
command again to verify that you’ve set everything up correctly.
Install Xcode
To develop Flutter apps for iOS, you need a Mac with Xcode installed.
- Install the latest stable version of Xcode (using web download or the Mac App Store).
Need Help on setup!!!
The Setup process is simple, but if suppose you stuck at any point please feel free to contact us www.dripcoding.com or comment below. We will help you out.
Now it is time to start First Flutter Project on Android Studio.