Reputation: 11
I am trying to create a flutter application in Visual Studio code which raising the above error.
Upvotes: 0
Views: 3509
Reputation: 11
Check the path of the ComSpec. Is it C:\WINDOWS\system32\cmd.exe
or not. I faced the same problem like you and solved it by editing the ComSpec path.
Add the flutter bin path correcly. And then follow the others steps like flutter doctor / flutter doctor --android-licenses
. for the licenses type Y everytime.
Upvotes: 1
Reputation: 1
it seems that you installed git in correctly uninstall git and than install correctly. when you installing it select the options (use git and optional unix tools from the windows command prompt)
Upvotes: 0
Reputation: 1
This may be because your cmd.exe file located in system32 has been corrupted or lost. Try to get the cmd.exe file from another system and paste it into the desired location then execute if there is a flutter in your system or not. This has solved the problem in my case.
Upvotes: -1
Reputation: 1238
Since you have installed Flutter for the first time, you need to accept Android License to start building with Flutter.
To accept the license,
flutter doctor --android-licenses
y
to accept every license.Upvotes: 0
Reputation: 1
it seems you have not accepted all android licenses. try reinstalling android SDK and make sure to accept all android licenses. then run
flutter doctor
and see if it passes all checks
Upvotes: 0
Reputation: 1
Sound to me like you have not installed flutter SDK properly or VS code is having problems finding the SDk path. it can be any of those things.
Upvotes: 0