Warning! This package referenced a Flutter repository via the .packages file that is no longer avail

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:\software\flutter_windows_v1.5.4-hotfix.2-stable\flutter
  previous reference  : C:\software\flutter_windows_v1.4.18-dev\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).

更改Flutter SDK后不能编译,以下是解决办法,删除 .gitignore 文件即可

That shouldn't be a problem. The .packages file is only valid on the machine+user where it was created. You shouldn't commit it. It's in .gitignore by default.

 

 

 

 

https://github.com/flutter/flutter/issues/21435

 

 

 

你可能感兴趣的:(Warning! This package referenced a Flutter repository via the .packages file that is no longer avail)