flutter - 更新到 Flutter 2.0 时出现的 Flutter 版本问题
问题描述
更新后,我所有的课程都出现错误。我也尝试过flutter clean。每当我运行 flutter pub get 命令时,我都会收到以下错误。
Because no versions of intl_utils match >1.8.0 <1.9.0 and intl_utils ^1.9.0 depends on intl_translation 0.17.10+1, intl_utils >1.8.0 <2.0.0 requires intl_translation 0.17.10+1.
And because intl_utils 1.8.0 depends on intl_translation 0.17.10 which depends on intl >=0.15.3 <0.17.0, intl_utils ^1.8.0 requires intl >=0.15.3 <0.17.0 or intl_translation 0.17.10.
And because intl_translation 0.17.10 depends on intl >=0.15.3 <0.17.0 and every version of flutter_localizations from sdk depends on intl 0.17.0, intl_utils ^1.8.0 is incompatible with flutter_localizations from sdk.
So, because markets depends on both flutter_localizations any from sdk and intl_utils ^1.8.0, version solving failed.
pub get failed (1; So, because markets depends on both flutter_localizations any from sdk and intl_utils ^1.8.0, version solving failed.)
解决方案
是的,尝试降级你的颤振版本。我遇到过同样的问题
flutter downgrade 1.22.6
推荐阅读
- maven - Jenkins 使用 Deploy to Container 插件部署到 JBoss EAP7
- docker - 当 dockerfile 在项目内的文件夹中并且解决方案包含多个项目时运行 docker
- php - 使用 CakePHP 4 发送电子邮件
- notepad++ - 删除记事本++中两个字符之间的单个空格
- cplex - 有人在 OPL 中使用过 Ford Fulkerson 算法吗?
- c# - 如果身份服务器发现文档无法访问,则处理错误
- asp.net-core - endpoints.MapFallbackToFile("index.html") 弄乱了 asp.net 核心项目中的路由
- python - 将火花流写入 Mongodb 接收器的问题
- python - Tkinter 按钮中的命令是否存储在按钮中?
- amazon-web-services - 如何在 Lambda 中读取任何事件的标签(AWS 服务)