07-21-2023, 07:51 PM
The reasons for this error can be either you did not install Flutter or you are using an older version of Flutter 1.21. So it is advisable to check the above things first of all. If none of the above things are the reasons for your error you can follow the below steps and it might help you.
1. Go to File --> Settings
2. Then Languages and Frameworks --> Flutter
Flutter SDK path should be empty here. The problem is in here
3. Copy the Flutter SDK path
4. Paste it in the empty text field
5. Apply and OK
1. Go to File --> Settings
2. Then Languages and Frameworks --> Flutter
Flutter SDK path should be empty here. The problem is in here
3. Copy the Flutter SDK path
4. Paste it in the empty text field
5. Apply and OK