Flutter SDK路径改变后报错

Flutter SDK路径改变后报错

Warning! This package referenced a Flutter repository via the .packages file that is no longer available. The repository from which the 'flutter' tool is currently executing will be used instead.
  running Flutter tool: C:\flutter
  previous reference  : D:\Flutter\flutter
This can happen if you deleted or moved your copy of the Flutter repository, or if it was on a volume that is no longer mounted or has been mounted at a different location. Please check your system path to verify that you are running the expected version
(run 'flutter --version' to see which flutter is on your path).

删掉工程目录下的.packages文件,然后重新get package.

如果还不行,参照下面链接。
http://www.freesion.com/article/96594590/

你可能感兴趣的:(Flutter SDK路径改变后报错)