3

I just updated Dart version and then my vscode warning me everytime, "The Dart Analyzer could not be started".

enter image description here

How can i solve this issue ?

Thank's

Robin
  • 4,902
  • 2
  • 27
  • 43

4 Answers4

2

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 ---

Robin
  • 4,902
  • 2
  • 27
  • 43
  • It would be better to click the "Show Log" button and if it's not clear from that log what's up, open an issue on GitHub for investigation :-) – Danny Tuppeny Jun 05 '19 at 18:58
  • So I found the answer to my question here: https://github.com/flutter/flutter/issues/36257 After deleting the cache directory in the bin folder and re-running Flutter Doctor my problem went away. – dwax Aug 15 '19 at 09:54
2

solved..!

give permission to access the flutter folder.

for MAC

  • go to the security & privacy section
  • then select the files and folders
  • under your IDE,
  • give permission to access the Flutter folder

In my case I put the flutter folder inside the document

0

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}

Prosenjit Manna
  • 474
  • 4
  • 10
0

In my case a simple restart of VSCode was needed - it seems as if there was a Dart update pending that VSCode did not notify me about.