[英]Error: Cannot run with sound null safety, because the following dependencies don't support null safety; in flutter
[英]Cannot run with sound null safety, because the following dependencies don't support null safety
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_platform_interface-2.2.0/lib/messages.dart:4:1: 错误:默认情况下,库不能选择退出 null 安全,使用声音 null 时安全。 // @dart = 2.8 ^^^^^^^^^^^^^^ /C:/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock_platform_interface-0.1.0+1/lib/messages .dart:4:1: 错误:当使用健全的 null 安全性时,默认情况下库不能选择退出 null 安全性。 // @dart = 2.8 ^^^^^^^^^^^^^ 错误:无法以健全的 null 安全运行,因为以下依赖项不支持 null 安全:
你好,
我从其他人那里导入了项目。 当我尝试 pub 时,它说需要 SDK 版本 >=2.12.0 <3.0.0,版本解决失败。 然后我通过这个错误更新了 dart 它。
解决方案1:
我已经尝试了上面的链接解决方案仍然通过上面的错误
试试这个,Go 到终端并运行这个命令; flutter 运行 --no-sound-null-safety
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.