I have upgraded the flutter latest with the command flutter upgrade, after upgrading now flutter doctor shows the warning (below)
Warning: dart
on your path resolves to E:Program FilesAndroiddart-sdkbindart.exe, which is not inside your current Flutter SDK checkout at E:Program FilesAndroidflutter. Consider adding E:Program FilesAndroidflutterbin to the front of your path.
anyone can help me ?
i tried by downloading flutter zip and replace the current flutter folder, but still the same happens !
2
Answers
You can resolve this warning by adding the Flutter SDK’s bin directory to the front of your PATH environment variable. Here’s how you can do it in Windows:
environment variables for your account".
variable, and click on "Edit".
FilesAndroidflutterbin) to the front of the PATH.
After adding the Flutter SDK’s bin directory to the front of the PATH, you should no longer see the warning message when you run flutter doctor.
For Mac and linux users having the same issue,
Instead of adding the
/path/to/flutter
to the end of the$PATH
variable add it to the beginning. So it should bePATH="/path/to/flutter:$PATH"
. See here for explanation.