Flutter SDK is not found in the specified location - in Android Studio
The same problem faced me, but trying the above solution was not helpful. So I tried another thing:
- Open File
- Select settings from the File menu
- Select Languages & frameworks from the left panel
- Select Flutter
- Then from the right panel choose the location of your flutter SDK
The location of flutter SDK is where you copied or cloned the code. In my case it was like the following:
If the specified location contains the flutter SDK, the version section will contain your flutter version. If not, the version section will not contain any versions and there will be a message in the bottom of the setting dialog saying:
Flutter SDK Is Not Found In The Specified Location
Hope this helps.
As mentioned in the message it is optional and only used for specific tasks.
You can install it from Android Studio
Menu > Tools > SDK Manager > Android SDK (left side of the dialog) > SDK Tools (tab)
Ensure that this line is enabled
With [OK] it should be installed.
The path to the SDK should be to the main Flutter folder (e.g. C:\src\flutter
and not to the bin
folder as set in the Environment Variable Path.