Visual Studio Code - Target of URI doesn't exist 'package:flutter/material.dart'

后端 未结 29 888
Happy的楠姐
Happy的楠姐 2020-12-07 21:33

I\'ve just setup my Macbook for flutter development,

So I downloaded flutter sdk, and placed it in my Documents. After, I setup my path variable to

相关标签:
29条回答
  • 2020-12-07 22:23

    Close the VS Code and Run it again

    0 讨论(0)
  • 2020-12-07 22:23

    I didn't think this was possible: I had to delete flutter folder and reinstall it from scratch!

    0 讨论(0)
  • 2020-12-07 22:25

    Sometimes, this issue is resolved simply by running flutter pub get once again...

    packages get to make sure that all packages are considered...

    as when moving the project from one computer to another, this may happen, that the packages are not taken into consideration, so flutter pub get and there you go !!!

    0 讨论(0)
  • 2020-12-07 22:26

    The quickest way to get Dart-Code to reliably find your Flutter install and use it is to create a new FLUTTER_ROOT environment variable and set it to your Flutter path.

    0 讨论(0)
  • 2020-12-07 22:26

    Restart the VS Code you will see magic! If that's not work check the indent in the pubsepec.yaml

    0 讨论(0)
提交回复
热议问题