我试图将我的 Flutter 项目配置为在网络上运行。flutter channel master
我尝试运行后使用切换到主通道flutter upgrade
。我现在得到一个无限循环:
Building flutter tool...
Running pub upgrade...
Pub failed to delete entry because it was in use by another process.
This may be caused by a virus scanner or having a file
in the directory open in another application.
Error (1): Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
Waiting for 0 seconds, press CTRL+C to quit ...
Running pub upgrade...
Pub failed to delete entry because it was in use by another process.
This may be caused by a virus scanner or having a file
in the directory open in another application.
Error (1): Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (8 tries left)
Waiting for 2 seconds, press CTRL+C to quit ...
Terminate batch job (Y/N)? Y
Run Code Online (Sandbox Code Playgroud)
我尝试了多种方法,例如运行flutter clean
、尝试切换回稳定通道、删除 flutter/bin 目录中的缓存文件夹、关闭 Windows Defender,但似乎没有任何效果。现在,当我尝试运行flutter doctor
或任何其他 flutter 命令时,我会得到带有相同消息的相同无限循环。我还尝试手动下载并用新安装替换我的 flutter sdk 安装,这也不起作用。此时我唯一的选择是完全删除 flutter 并从头开始重新安装吗?
如果有任何有关如何解决此问题的建议,我将不胜感激。
归档时间: |
|
查看次数: |
25202 次 |
最近记录: |