简体   繁体   English

Flutter doctor 未在命令提示符下运行

[英]Flutter doctor is not running in command prompt

I have been using flutter smoothly before this but suddenly when I run flutter doctor in my command prompt I get the following error.在此之前,我一直在顺利使用 flutter,但是当我在命令提示符下运行 flutter doctor 时突然出现以下错误。

Updating flutter tool... Could not find a file named "pubspec.yaml" in "C:\\Users\\personal\\AppData\\Roaming\\Pub\\Cache\\hosted\\pub.dartlang.org\\linter-0.1.43".正在更新 flutter 工具...在“C:\\Users\\personal\\AppData\\Roaming\\Pub\\Cache\\hosted\\pub.dartlang.org\\linter-0.1.43”中找不到名为“pubspec.yaml”的文件。 Error: Unable to 'pub upgrade' flutter tool.错误:无法“发布升级”颤振工具。 Retrying in five seconds...五秒后重试...

I have also uninstalled the flutter and dart plugin from the android studio but it didn't help.我还从 android studio 卸载了 flutter 和 dart 插件,但没有帮助。

I deleted the cache folder in the following location.我删除了以下位置的缓存文件夹。

C:\\Users\\personal\\AppData\\Roaming\\Pub\\Cache\\ C:\\用户\\个人\\AppData\\Roaming\\Pub\\Cache\\

Now my flutter doctor is working again.现在我的颤振医生又开始工作了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM