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)解决方案)