Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is Dart's SDK located within /flutter folder?

Software

MacOS Sierra 10.12.6 Android Studio 3.1.2 Flutter 0.3.2 • channel beta Tools • Dart 2.0.0-dev.48.0.flutter-fe606f890b Flutter doctor (no problems found) 

Problem

Dart's SDK is supposed to be bundled when Flutter is downloaded according to the documentation:

"The Dart SDK is bundled with Flutter; it is not necessary to install Dart separately"

However, I opened an existing Flutter project with Android Studio and it suggested me to either "Download Dart SDK" or "Open Dart settings":

Image of Android Studio suggesting to "download Dart SDK"

Apparently, I need to "Open Dart settings" and tell Android Studio where to find the Dart' SDK. However, it can't find it within the flutter/ directory.

like image 245
XY6 Avatar asked May 14 '18 01:05

XY6


People also ask

Where is flutter sdk location?

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.

Where is Dart sdk folder?

By default, the SDK is installed at C:\tools\dart-sdk . You can change that location by setting the ChocolateyToolsLocation environment variable to your chosen installation directory.

How do I check my sdk in flutter?

Checking Flutter SDK Version and Channel You'll see something like below in your terminal window: Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 2.10. 3, on macOS 12.1 21C52 darwin-x64, locale en) [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.

How do you get the Dart sdk in flutter?

Open Android Studio and click on Configure. Then, select Plugins. From the resulting screen, click on Flutter and click on Install. Click on Accept and then Yes to install the Dart plugin.


1 Answers

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.

like image 184
Danny Tuppeny Avatar answered Sep 24 '22 13:09

Danny Tuppeny