Flutter sdk not found. define location with flutter.sdk in the local.properties file.

To define the location of the Flutter SDK in the local.properties file, follow the steps below:

  1. Locate the local.properties file in your Flutter project.
  2. If the file doesn’t exist, create a new file and name it “local.properties”.
  3. Open the local.properties file in a text editor.
  4. Add the following line to the file:
    flutter.sdk=your_flutter_sdk_path
  5. Replace “your_flutter_sdk_path” with the actual path to your Flutter SDK installation directory. Make sure to provide the full path.
  6. Save the local.properties file.

For example, if your Flutter SDK is installed in C:\Flutter\flutter, your local.properties file should contain:

    flutter.sdk=C:\\Flutter\\flutter
  

After making this change, the location of the Flutter SDK will be defined for your project, which should resolve the issue of Flutter SDK not being found.

Read more

Leave a comment