How to find the path of Flutter SDK
If you have the flutter SDK installed.
Run:
flutter doctor -v
The first line will show the install path..
(if you don't have it installed go to the documentation)
If you've installed flutter from the snap store on Ubuntu, you'll find the SDK at/home/(username)/snap/flutter/common/flutter
FYI - I installed Flutter on Ubuntu 20.04 LTS using snap install
and am using Android Studio 4.0.1 installed via JetBrains toolbox app
sudo snap install flutter --classicsudo snap install flutter-galleryflutter channel devflutter upgradeflutter config --enable-linux-desktop
It was not necessary to install the SDK separately, the snap steps above will place the SDK at
/home/(username)/snap/flutter/common/flutter
Here's the Android Studio Pop-up for a new Flutter app accepting this location for the Flutter SDK:
In Android Studio
Configuring Flutter SDK is pretty straightforward. You don't have to set paths using the command line if you have already installed Dart and Flutter Plugins in Android Studio
How to Configure Flutter SDK?
Download the SDK and point the SDK folder path in your futureprojects.
There are different sources you can try
- You can clone it from the Github Repository
- Download SDK zip file + extract it after downloading
- You can also Download any version(including older) from here (For Mac, Windows, Linux)
Use the SDK path in your future projects
How to see Flutter SDK path?
I don't understand the need because you already know the path when you create the project. However, you can get the idea from test/package folder