'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/...?
Solution 1:[1]
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
Solution 2:[2]
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Birju Vachhani |
Solution 2 |