简体   繁体   English

"无法以可靠的 null 安全性运行,因为以下依赖项不支持 null 安全性:"

[英]Cannot run with sound null safety, because the following dependencies don't support null safety:

Im getting below error in my code.我的代码出现以下错误。 just add flutter_svg: ^1.0.3<\/strong> in pubspec.yamal.只需在 pubspec.yamal 中添加flutter_svg: ^1.0.3<\/strong> 。 how to resolve this error.如何解决此错误。 appriciate your help on this. appriciate 对此的帮助。

Error: Cannot run with sound null safety, because the following dependencies don't support null safety:错误:无法以可靠的 null 安全性运行,因为以下依赖项不支持 null 安全性:

Try below code hope its help to you试试下面的代码希望对你有帮助

add below line to your main.dart<\/code> file at the top将以下行添加到您的main.dart<\/code>文件顶部

// @dart=2.9

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法以健全的 null 安全运行,因为以下依赖项不支持 null 安全 - Cannot run with sound null safety, because the following dependencies don't support null safety 错误:无法以健全的 null 安全运行,因为以下依赖项不支持 null 安全; 在 flutter - Error: Cannot run with sound null safety, because the following dependencies don't support null safety; in flutter Flutter 不能以空安全运行,因为以下依赖不支持空安全 - Flutter Cannot run with sound null safety, because the following dependencies don't support null safety 错误:无法以健全的 null 安全运行,因为以下依赖项不支持 null 安全: - Error: Cannot run with sound null safety, because the following dependencies don't support null safety: 无法以声音 null 安全运行,因为依赖项不支持 null 安全 - Cannot run with sound null safety because dependencies don't support null safety 无法以声音 null 安全运行,因为依赖项不支持 null 安全 - Cannot run with sound null safety because dependencies doesnot support null safety 无法以声音 null 安全运行,因为依赖振动到 nullsafety - Cannot run with sound null safety because dependencies vibration to nullsafety 无法正常运行 null 安全,因为以下依赖项 [build\windows\flutter\flutter_assemble.vcxproj] - Cannot run with sound null safety, because the following dependencies [build\windows\flutter\flutter_assemble.vcxproj] 错误:无法以声音空安全运行,因为以下依赖项(flutter_absolute_path) - Error: Cannot run with sound null safety, because the following dependencies (flutter_absolute_path) Flutter 2.0 以下依赖不支持 null 安全 - Flutter 2.0 following dependencies don't support null safety
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM