When I try to run any Flutter Command, it gives me this error:
The system could not find the path specified
Error (1): Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
After that, it waits 5 Seconds and loops. To end the loop it tells me to press CTRL + C.
I've been looking for the solution all day, I've tried the following things:
Reinstalling Flutter, Dart and Android Studio
Adding Flutter to the path
Deleting the cache folder
Disabling Antivirus
Running D:\Flutter\flutter\bin\cache\dart-sdk\bin\pub.bat upgrade --verbosity=error --no-packages-dir
in D:\Flutter\flutter\packages\flutter_tools>
Everything didn't work.
As Mentioned, my Flutter SDK path is D:\Flutter\flutter