Had the same issue after cloning my Flutter app for git. In order to resolve I had to open VS Code as admin. Saw that I had an outdated Dart SDK version and had to run flutter upgrade. Hope it helps :)