简体   繁体   English

无法在 vscode 中启动 Dart Analyzer

[英]The Dart Analyzer could not be started in vscode

I just updated Dart version and then my vscode warning me everytime, "The Dart Analyzer could not be started".我刚刚更新了 Dart 版本,然后我的 vscode 每次都警告我,“无法启动 Dart 分析器”。

在此处输入图片说明

How can i solve this issue ?我该如何解决这个问题?

Thank's谢谢

This problem is solved by uninstalling the Dart sdk manually from the computer, and re-install it.这个问题可以通过从电脑上手动卸载Dart sdk,然后重新安装来解决。

If anyone face the same problem, please uninstall your dart sdk And install it again.如果有人遇到同样的问题,请卸载您的 dart sdk 并重新安装。 Make sure you re-start your vscode IDE.确保重新启动 vscode IDE。

Hope this will helpful if you face the same problem.如果您遇到同样的问题,希望这会有所帮助。

--- Happy Coding --- --- 快乐编码 ---

solved..!解决了..!

give permission to access the flutter folder.授予访问 flutter 文件夹的权限。

for MAC对于 MAC

  • go to the security & privacy section转到安全和隐私部分
  • then select the files and folders然后选择文件和文件夹
  • under your IDE,在您的 IDE 下,
  • give permission to access the Flutter folder授予访问 Flutter 文件夹的权限

In my case I put the flutter folder inside the document就我而言,我将 flutter 文件夹放在文档中

I had a permission issue.我有一个许可问题。 I just go through the log and seems unable to create .dart directory in the home folder.我只是查看日志,似乎无法在主文件夹中创建 .dart 目录。

Here is the solution: - This solution for mac only - cd ~ - cd .. - whoami - sudo chown {username} {userfolder}这是解决方案: - 此解决方案仅适用于 mac - cd ~ - cd .. - whoami - sudo chown {username} {userfolder}

在我的情况下,需要简单地重新启动 VSCode - 似乎有一个 Dart 更新未决而 VSCode 没有通知我。

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

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