I am trying for flutter doctor and the following error was shown
Running pub upgrade...
The system cannot find the path specified.
Error (1): Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
Waiting for 2 seconds, press CTRL C to quit ...
Terminate batch job (Y/N)?
the above initializing was shown for 4 hours. What may be the issue? Can anyone please help with this
CodePudding user response:
I fixed that by:
- Ctrl C to stop infinite error loop.
- Kill the Dart process in Windows Task Manager.
- Delete the cache folder located in flutter/bin directory.
- Run in command line flutter pub cache repair.
- Run
flutter doctor
CodePudding user response:
Try below steps hope its help to you:
- Go to your flutter directory
- Delete cache folder inside
flutter/bindirectory - Then try to run
flutter doctor
CodePudding user response:
First Make sure you have a working internet connection and if this issue still exists then, this error may be because the dart sdk may have not been properly downloaded. The simplest solution is to delete the cache folder located in flutter/bin(location where flutter is installed) and then Run flutter doctor.
**Also **try turing off your 'Antivivrus' and try 'flutter doctor'

