4

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

4 Answers 4

3

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

3

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

2
  • 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 :-) Commented Jun 5, 2019 at 18:58
  • So I found the answer to my question here: 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
    Commented Aug 15, 2019 at 9:54
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}

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.