Integrate Flutter SDK with Android studio
Introduction:
This blog provides a step-by-step guide to integrating the Flutter SDK into Android Studio on macOS.
Download Flutter
For Intel Processors: Download
flutter_macos_
3.24.1-stable.zip
.For Apple Silicon: Download
flutter_macos_arm64_
3.24.1-stable.zip
.
By default flutter sdk will be downloaded to ~/Downloads/
.
Create a Directory for Flutter
Create new directory - ~/development/.
Create a new directory to install Flutter:
$ mkdir ~/development/
Extract the Flutter SDK
Extract the downloaded file into the directory you created:
$ unzip ~/Downloads/flutter_macos_arm64_3.24.1-stable.zip -d ~/development/
The Flutter SDK will be available in the ~/development/flutter
directory.
Add Flutter to your PATH
Add Flutter to the PATH environment variable:
Open the ~/.zshenv
file.
Add the following line:
export PATH=$HOME/development/flutter/bin:$PATH
Save the file.
Restart all open terminal sessions.
Install Flutter Plugin in Android Studio
Start Android Studio.
Go to Android Studio > Settings.
Select Plugins from the list on the left.
Select Marketplace at the top.
Search for "Flutter" in the plugins search field.
Select the Flutter plugin and click Install.
Click Yes to install the plugin.
Restart Android Studio when prompted.
Link Flutter SDK Path to Android Studio
Go to Android Studio > Settings > Languages & Frameworks > Flutter.
Set the Flutter SDK path to the directory where you extracted the SDK.