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

更改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.

再不行就把.packages也删掉

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