Reputation: 3325
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/...?
Upvotes: 19
Views: 10230
Reputation: 1
perhaps, not set "snap's path" on environment. add to PATH="$PATH:/snap/bin" in .bashrc or .profile. and execute under command.
% flutter sdk-path
Upvotes: 0
Reputation: 606
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
Upvotes: 3
Reputation: 361
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
Upvotes: 26