当前位置:网站首页>(Flutter报错)Cannot run with sound null safety, because the following dependencies
(Flutter报错)Cannot run with sound null safety, because the following dependencies
2022-08-10 05:35:00 【丶咸鱼】
在Flutter中引入第三方库报错Cannot run with sound null safety, because the following dependencies
。这是出现了don’t support null safe的问题,因为在Flutter2中使用了null safety(空安全)技术,如果出现null,就会报错。这种安全机制大大减少了null error。解决办法如下:
- 在终端运行
flutter run --no-sound-null-safety
- “Edit Configurations” (在run配置里) → “Additional run args” 添加
--no-sound-null-safety
AndroidStudio前提下
边栏推荐
猜你喜欢
随机推荐
LeetCode 剑指offer 10-I.斐波那契数列(简单)
pytorch-10.卷积神经网络(作业)
树结构——2-3树图解
力扣——省份数量
pytorch-06.逻辑斯蒂回归
pytorch-06. Logistic regression
LeetCode 292. Nim Game (Simple)
【简易笔记】PyTorch官方教程简易笔记 EP2
Tensorflow 2.0 使用流程详解
【烘焙】肉松蛋糕卷
LeetCode 94. Inorder Traversal of Binary Trees (Simple)
pytorch-05.用pytorch实现线性回归
Copy large files with crontab
51单片机ST188手持人体温度脉搏心率测量仪锂电池充电
优先队列
常用类 String概述
Radon 变换原理和应用
LeetCode 938. Range Sum of Binary Search Trees (Simple)
PyTorch之模型定义
51单片机RS485远程双机多机温度采集主从机多节点蜂鸣器报警