
[英]Flutter Provider with listen false, but still get error "setState() or markNeedsBuild() called during build."
[英]Failed to remove build. A program may still be using a file in the directory
每当我尝试使用命令 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
我的应用程序运行良好,然后突然发生这种情况,尝试以管理员身份运行 cmd 然后清理但它没有工作,还从 android 工作室重新启动缓存它也没有工作。
我的解决方案
我通过在任务管理器中关闭任何 openJDK 或 java 实例解决了这个问题,而不是在具有管理员权限的 cmd window 中运行它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.