Where is Dart's SDK located within /flutter folder?
The Dart SDK lives inside the bin/cache/dart-sdk
folder of the Flutter SDK. It will be downloaded the first time you run the flutter
command, so may not exist if you've not yet run flutter
.
The Dart's SDK is located at /flutter/bin/cache/dart-sdk
However, If Android Studio's flutter plugin is installed, the plugin needs to be told where flutter's SDK is located. Android Studio should be able to locate Dart's SDK afterwards:
After installing flutter however you choose.
- run the following command
flutter sdk-path
-
In Android-Studio select File->Setting->Languages & Frameworks->Flutter (assuming you have installed teh flutter plugin)
-
Populate the "Flutter SDK path:" with the result from (1).
-
Click apply. The Dart SDK should automatically get populated.
For my installation the values are:
Flutter SDK path: /home/andrew/snap/flutter/common/flutter
Dart SDK path: /home/andrew/snap/flutter/common/flutter/bin/cache/dart-sdk