If you already have a working Flutter project then a.packages file contains some discrepancies. packages file is missing or either the path to Flutter SDK in the. You’re getting this error because either the. packages file in your Flutter Project this file contains the path to your Flutter SDK & some other metadata. If it didn’t work, change the environment variables directly. The first thing to do is to follow the steps in flutter documentation: Flutter Doc If the SDK is downloaded into your Downloads folder, your path to add should be / Users/ yourusername/ Downloads/ flutter/ bin.Enter “ Y” to save the modified buffer.Go to the bottom of the file, and enter the path you wish to add.Run the following command: Sudo nano /etc/paths It should be in your downloads folder unless you selected somewhere else. If you see this again after restarting, that’s definitely a bug in the Dart/Flutter Extension, so please open an issue at and include the output from clicking the Show Log button, as well as noting whether there’s a dart.flutterSdkPath setting in your VS Code User Settings.įirst, find where you downloaded the Flutter SDK. This means the Flutter Extension couldn’t find the Flutter SDK automatically Clicking Locate SDK should let you browse to the SDK manually and record that location for the next time.
So in this article, we will go through How to Solve VSCode Can’t Find Path to Flutter SDK? How to Solve VSCode Can’t Find Path to Flutter SDK? When the user installs and configures Flutter SDK Sometimes it throws an error that says could not find Flutter SDK and ensure to complete all requirements of Flutter Doctor.