每当我尝试使用命令 flutter clean
清理我的 flutter 项目时,我都会收到一条错误消息
Failed to remove build. A program may still be using a file in the directory or the directory itself. To find and stop such a program, see:
https://superuser.com/questions/1333118/cant-delete-empty-folder-because-it-is-used
我可以理解有一些目录打开了,它必须关闭才能清理。但我不明白是哪一个。我尝试 重新启动计算机 以解决此问题。但是当我运行命令 flutter clean 时仍然出现错误。
原文由 Jithin Palepu 发布,翻译遵循 CC BY-SA 4.0 许可协议
如果您将项目文件夹移动到另一个地方,那么只需
**delete** your "build" folder
和和
你会没事的:)干杯。