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/...?
At the top of the Languages & Frameworks > Flutter is the 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.
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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With