android - 缺少“卷曲”工具。无法下载 Dart SDK。考虑运行“sudo apt-get install curl”
问题描述
hared_preferences: ^0.5.3+4
在pubspec.yaml
文件中添加依赖项后,我面临这个问题。
添加依赖后,建议我更新flutter sdk以使用依赖的版本。所以我只是跑flutter upgrade
。之后,我无法运行应用程序,并且对于每个命令(Flutter upgrade
等Flutter doctor
),都会引发以下错误。
缺少“卷曲”工具。无法下载 Dart SDK。考虑运行“sudo apt-get install curl”。
进程以退出代码 1 结束
我也运行命令sudo apt-get install curl
并得到以下结果。
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
curl : Depends: libcurl3-gnutls (= 7.47.0-1ubuntu2) but 7.47.0-1ubuntu2.12 is to be installed
E: Unable to correct problems, you have held broken packages.
请指导我摆脱问题。
解决方案
只要去你安装flutter的地方并删除你下载的flutter并下载一个新的错误就会消失
推荐阅读
- java - 如何使用 JDBC 驱动程序连接到 Databricks Delta 表
- java - 模拟单元测试和 UI 测试的最终类
- javascript - 用javascript检测文本省略号
- python-3.x - 在 df 的特定列中查找 NaN 值
- python-3.x - Mail Gun 电子邮件在 Google App Engine 上的 Flask 中不起作用
- python - Python 变量没有正确导入
- sql - 当 where 子句只包含索引的第一列时,为什么不使用索引?
- android - Android webview touchmove 错误
- css - 关于应区别对待的同一对象的多个实例的基本 CSS 问题
- linux - 从服务器上的用户运行不受信任的可执行文件的最佳方法