gpt4 book ai didi

flutter - 无法以健全的空安全运行,因为以下依赖项不支持空安全

转载 作者:行者123 更新时间:2023-12-04 16:38:12 27 4
gpt4 key购买 nike

/C:/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_platform_interface-2.2.0/lib/messages.dart:4:1: Error: A library can't opt out of null safety by default, when using sound null safety.// @dart = 2.8^^^^^^^^^^^^^^/C:/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock_platform_interface-0.1.0+1/lib/messages.dart:4:1: Error: A library can't opt out of null safety by default, when using sound null safety.// @dart = 2.8^^^^^^^^^^^^^^Error: Cannot run with sound null safety, because the following dependenciesdon't support null safety:


你好,
我从其他人那里导入了项目。当我尝试 pub 时,它会说 需要SDK版本>=2.12.0 <3.0.0,版本解析失败。 然后我通过这个错误更新了它。
解决方案1:
enter link description here
我已经尝试过上面的链接解决方案仍然通过上面的错误

最佳答案

尝试这个,
转到终端并运行此命令;
flutter 运行 --no-sound-null-safety

关于flutter - 无法以健全的空安全运行,因为以下依赖项不支持空安全,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66333667/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com