flutter packages get - pub get failed (1)解决方案

【flutter packages get - pub get failed (1)解决方案】调用flutter packages get命令后出现下面的报错

Could not find a file named "xxx/pubspec.yaml" in xxx.git xxx. pub get failed (1)

删除flutter/.pub-cache文件夹
然后运行flutter packages get就可以了
flutter packages get - pub get failed (1)解决方案
文章图片

    推荐阅读