skip to Main Content

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"

Showing this

The code was fine till now.

When I open the dart settings & select flutter path & hit on apply all the code starts showing errors.

The whole code is full of 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


  1. 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 running flutter pub get to see if it works.

    Login or Signup to reply.
  2. 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 the Flutter SDK Path is correctly set up under File->Settings->Language & Framework->Flutter.

    If this does not help check out suggested solutions here.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search