Below are the solutions /methods to solve Dart SDK is not configured
method 1
I had the same Dart SDK issue and I usedĀ thisĀ for my solution. To remedy the issue without having to use the terminal to test my programs each time the steps I followed are as follows.
- Find
flutter
SDK path. I did so by typing inecho $PATH
and finding the path with /flutter/bin. - Assuming your path is something like
.../flutter/bin
just add on/cache/dart-sdk/bin
making it.../flutter/bin/cache/dart-sdk/bin
. - This
.../flutter/bin/cache/dart-sdk/bin
is the location of your Dart SDK. Assuming you say the same Dart SDK is not configured error accompanied by something where you can configure your Dart SDK. You click the configure option and set.../flutter/bin/cache/dart-sdk
as your SDK. That should fix your problem. If not head over to the next step. - Open your Android Studio preferences(Command + ‘,’) and go to
Languages and Frameworks>Dart
. - Under the Dart menu, you should be able to enter your Dart SDK path.
I went through these steps using IntelliJ IDEA so they should be pretty much the same. If that didn’t work, sometimes making a dummy Dart project can get things working again. That fixed a similar issue for me.
method 2
t
o fix this on Android Studio 3.1.3:
- File-> Settings (ctrl+alt+s)
- Languages and Frameworks -> Dart
- Check “Enable Dart support for the project…”
- In “Dart SDK path” click in “…” and navigate to flutter SDK directory. Under that directory you’ll find “bin/cache/dart-sdk”. This is the dart sdk path you should use.
- Click “Apply”
- Close the project and open it again (sometimes you need this step, sometimes doesn’t)
Edit 2019-05-28 – I don’t know how long this option is enabled but I have noticed that in Android Studio 3.4 it’s easier to Enable Dart Support in projects that were developed in other machines.
- File -> Sync Project With Gradle Files
- After it builds, click in “Enable dart support” in the top of editor panel.
method 3
I am using Win10 Pro;
If you are using Android Studio and getting this message ‘Error: Dart SDK is not found in specified location
‘,
My fix was this.
- Go to
File/Settings
orCtrl+Alt+S
to bring up the settings window. - Go down to ‘
Language & Frameworks
and click on Dart - Check
Enable Dart support for the project 'YOUR_PROJECT_NAME'
- For the Path
Dart SDK path:
enter the location where you are storing theflutter
directory. - Drill down that directory till you see the Dart SDK directory
C:\flutter\bin\cache\dart-sdk
. You can alsoCheck SDK update
by checking the box and clicking onCheck now
to get the latest version.
This works too.
method 4
on ubuntu
- Install IntelliJ Flutter plugin:
- CtrlĀ +Ā ShiftĀ +Ā aĀ (Open Actions)
- Type in search ‘Flutter’ hit enter Install and restart IntelliJ
- Configure Flutter Plugin:
- CtrlĀ +Ā AltĀ +Ā sĀ (Open Settings)
- Type in search ‘Flutter’, Select option underĀ Language & Frameworks
- Open terminalĀ
which flutter
Ā outputĀPATH_TO_FLUTTER/bin/flutter
Ā youĀ ONLY NEEDĀ theĀPATH_TO_FLUTTER
Ā so remove everything fromĀ/bin...
- Paste the location on theĀ
Flutter SDK path
Ā input and apply
That will then ask you to restart IntelliJ and you should get both Flutter and Dart configured:

Good luck!
In case other answers didn’t work for you
If you are using *nixOS or Mac
- Open the terminal and type
which flutter
. You’ll get something like/Users/mac/development/flutter/bin/flutter
under that directory go tocache
folder here you will find either dart-sdk or (and) dart-sdk.old folder. Copy their paths. - Open preferences by pressing
ctrl+alt+s
orcmd+,
on mac. UnderLanguage & Frameworks choose Dart
findDart SDK path
. Put that path you’ve copied at first step to there. Click Apply.
If this didn’t solve the issue you have to also set the Flutter SDK path
- UnderĀ
Language & Frameworks choose Flutter
Ā and findĀFlutter SDK path
Ā field. - Your flutter SDK path is two step above in the folder hierarchy relative to whichĀ
which flutter
Ā command gave to you. Set it to the field you’ve found in step 1 of this header. Again click Apply & click save or ok.