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)
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":
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.
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.
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.
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.
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.
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
.
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