Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter SDK location after install with ubuntu snap

I'm trying to get Flutter + Android Studio set up as per the guidelines in https://flutter.dev/docs/get-started/install/linux

I installed flutter using ubuntu "snap" by running:

$ sudo snap install flutter --classic

When setting up a Flutter project in android studio now, it's asking me to enter a Flutter SDK path. I can't find a path that satisfies the flutter SDK path requirement. The one that I tried so far is /snap/flutter/current but that didn't seem to work. Any ideas on where the SDK is located before I go ahead and redownload it to some local directory in /home/...?

like image 657
de1337ed Avatar asked Aug 15 '20 23:08

de1337ed


People also ask

Where is flutter SDK snap?

At the top of the Languages & Frameworks > Flutter is the Flutter SDK Path.

Where is flutter SDK stored?

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.


2 Answers

I installed the same way, and I found the flutter SDK in my home path under snap flutter common flutter

/home/foobaruser/snap/flutter/common/flutter

also, you can check your path with

flutter doctor -v
like image 121
Pablo Alejandro Alandia Avatar answered Oct 18 '22 21:10

Pablo Alejandro Alandia


After installing flutter using:

sudo snap install flutter --classic

In the same shell, you have to execute (check the note):

flutter sdk-path

It will generate all SDK files in:

/home/$USER/snap/flutter/common/flutter
like image 20
ethicnology Avatar answered Oct 18 '22 21:10

ethicnology