xxxxxxxxxx
1. Open Android Studio.
2. Go to File > Settings.
3. In the left-hand side menu, select Languages & Frameworks > Flutter.
4. Click on the ellipsis ( ) icon next to Dart SDK path.
5. Browse and select the folder where your Dart SDK is located.
6. Save the changes by clicking on OK.
xxxxxxxxxx
On macos: After installing dart using brew install dart, run brew info dart
At the bottom it prints:
Please note the path to the Dart SDK:
/usr/local/opt/dart/libexec
xxxxxxxxxx
1- File>> Settings (ctrl+alt+s) >>Languages and Frameworks -> Dart
2- Check "Enable Dart support for the project..."
In "Dart SDK path" click in "..." and navigate to flutter SDK directory
/flutter/bin/cache/dart-sdk/bin
3- Apply >>ok