flutter报错总结

android studio 运行flutter项目显示未安装cocoaPods

终端执行该命令 open /Applications/Android\ Studio.app

android studio 运行 pub get 报错

image.png

1.打开flutter的安装目录,找到flutter/bin/cache/lockfile文件,删除即可
2.进入flutter的安装目录,执行命令:rm ./flutter/bin/cache/lockfile。

你可能感兴趣的:(flutter报错总结)