1

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
  • What errors? You forgot to include them. Please copy and paste some representative examples, as text. Anyway: have you perhaps tried configuring Dart SDK as it suggests? Commented Jan 9, 2022 at 20:18
  • you need to download sdk top of the right corner Commented Jan 9, 2022 at 20:23

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

Comments

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.