flutter Error:Cannot run with sound null safety, because the following dependencies don't support

学习flutter新版本的路上,真的是一天一个新惊喜啊

今天遇到的坑是 Flutter 升级高版本后,运行和build 报错
Error: Cannot run with sound null safety, because the following dependencies
don‘t support null safety:
flutter Error:Cannot run with sound null safety, because the following dependencies don't support

解决方法:

运行

  flutter run --no-sound-null-safety

build

flutter build apk --no-sound-null-safety

flutter Error:Cannot run with sound null safety, because the following dependencies don't support

好了~~大功告成

flutter Error:Cannot run with sound null safety, because the following dependencies don't support

flutter Error:Cannot run with sound null safety, because the following dependencies don't support

上一篇:windows日志查看与清理


下一篇:阿里云学生机购买指南(用途和优势)