This problem is solved by uninstalling the Dart sdk manually from the computer, and re-install it.
If anyone face the same problem, please uninstall your dart sdk And install it again. Make sure you re-start your vscode IDE.
Hope this will helpful if you face the same problem.
--- Happy Coding ---
give permission to access the flutter folder.
I had a permission issue. I just go through the log and seems unable to create .dart directory in the home folder.
Here is the solution: - This solution for mac only - cd ~ - cd .. - whoami - sudo chown {username} {userfolder}
在我的情况下,需要简单地重新启动 VSCode - 似乎有一个 Dart 更新未决而 VSCode 没有通知我。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.