Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find the path of Flutter SDK

How to configure Flutter SDK? How to locate the Flutter SDK? I don't know the location of the SDK file.

Image

like image 447
praveen harikrishna Avatar asked May 08 '18 14:05

praveen harikrishna


People also ask

How do I find my flutter sdk path?

Your Flutter SDK path should be a_better_place/flutter. These would be used in tools such as VSCode or Android Studio. Check your echo $PATH to point to the correct folder. Use export PATH=”$PATH:$HOME/flutter/bin” or whatever you need (and you can also include this into your ~/.

How do I find the sdk path?

Navigate to the File > Settings option you will get to see below dialog screen. Inside that screen. Click on Appearance and Behavior option > System Settings options and then click on the Android SDK option to get to see the below screen. Inside this screen, you will get to see your SDK path.

Where is flutter sdk path in Android Studio?

Extract the downloaded zip file and move it to the desired location you want to install Flutter SDK. Do not install it in a folder or directory that requires elevated privileges, (such as C:\Program Files\) to ensure the program runs properly. For this tutorial, it will be stored in C:\development\flutter.


2 Answers

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)

like image 95
Lee Higgins Avatar answered Sep 18 '22 05:09

Lee Higgins


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 --classic sudo snap install flutter-gallery flutter channel dev flutter upgrade flutter 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:

Flutter SDK Path

like image 21
Richard Logwood Avatar answered Sep 19 '22 05:09

Richard Logwood