Flutter-Process ‘command ‘flutterinflutter.bat‘‘ finished with non-zero exit value 1

时间:2024-03-20 21:06:29

flutter一个项目第一次运行的时候,报错如图:
Flutter-Process ‘command ‘flutter\bin\flutter.bat‘‘ finished with non-zero exit value 1
不要管这个报错信息,往上翻,上面的问题解决了,这个问题就不存在了。

比如:我运行的其中一个项目,报错往上翻如图
Flutter-Process ‘command ‘flutter\bin\flutter.bat‘‘ finished with non-zero exit value 1
找到位置,点进去查看SliverOverlapAbsorber的源码发现,里面的参数变了,新版本升级的原因,把child改为sliver,再次运行可以了:
Flutter-Process ‘command ‘flutter\bin\flutter.bat‘‘ finished with non-zero exit value 1总之,往上翻,解决上面的error,不要理会Process ‘command ‘flutter\bin\flutter.bat’’ finished with non-zero exit value 1这些信息。