CUSTOMBUILD : error : Cannot run with sound null safety

flutter编译Windows程序时,遇到了CUSTOMBUILD : error : Cannot run with sound null safety, because the following dependencies错误消息。好像是不支持null安全,需要加上启动参数--no-sound-null-safety来屏蔽该功能。

在Android Studio中,main.dart上点右键,选择Modify Run Configuration…菜单,然后在弹出窗口的Addtional run args里输入--no-sound-null-safety即可。

留下评论

您的电子邮箱地址不会被公开。 必填项已用 * 标注