I’ve installed flutter on Android studio whenever I import a new project on Android studio it shows "Dart not configured Download Dart SDK or Open Dart settings"
The code was fine till now.
When I open the dart settings & select flutter path & hit on apply all the code starts showing errors.
Idk what to do tried with every project only when making a new flutter project is working fine. Flutter version is 2.8.1
Dart version is 2.15.1
Android Studio Arctic Fox | 2020.3.1 Patch 4
2
Answers
Have you installed the flutter sdk with terminal or by downloading the directory? If it’s the later, first make sure to select the right dart sdk path in the settings. It’s in
your_flutter_directory/bin/cache/dart-sdk
and then flutter sdk path. After this try runningflutter pub get
to see if it works.Make sure you
installed the Dart properly
, as Android Studio indicates it in your first Screenshot. Also see here.If this is your case make sure that you
choose the correct SDK Location
, which you selected during installation. Also make sure, that theFlutter SDK Path
is correctly set up underFile->Settings->Language & Framework->Flutter.
If this does not help check out suggested solutions here.