执行Fluff Clean时Flutter无法删除构建文件夹 [英] Flutter cannot delete build folder when flutter clean is executed

查看:304
本文介绍了执行Fluff Clean时Flutter无法删除构建文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我尝试使用以下命令清理Flutter项目时 flutter clean 我收到一条错误消息

Whenever I try to clean my flutter project by using the command flutter clean I get an error saying

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 时,仍然收到错误消息.

I can understand that there is some directory opened and it has to closes in order to clean. But I cannot understand which one is it. I tried restarting my computer to resolve this issue. But still when I run the command flutter clean I get the error.

推荐答案

以管理员身份运行cmd,然后运行命令.就这么简单.

Simply run your cmd as administrator then run the command. As simple as that.

稍后谢谢..:)

这篇关于执行Fluff Clean时Flutter无法删除构建文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆