因为项目名称要求SDK版本 >=2.12.0 <3.0.6,版本解决失败。

huangapple go评论61阅读模式
英文:

Because project name requires SDK version >=2.12.0 <3.0.6, version solving failed

问题

如何解决这个问题。当我运行flutter pub get时,会显示这个错误。我已经更改了环境:
sdk:">=2.12.0 <3.0.6",但这个错误仍然相同。我尝试运行flutter clean和flutter upgrade,但仍然无法解决这个问题。我该怎么办?

英文:

How to solve this problem. When I run flutter pub get this error will be shown. I have changed the environment:
sdk: ">=2.12.0 <3.0.6" but this error is still the same. I tried running the flutter clean flutter upgrade but still can't solve this issue. What should I do?
因为项目名称要求SDK版本 >=2.12.0 <3.0.6,版本解决失败。

因为项目名称要求SDK版本 >=2.12.0 <3.0.6,版本解决失败。

答案1

得分: 1

你需要降级Flutter版本或者更新animated_floatbutton插件以适配最新的Flutter版本,因为这个插件版本不支持Flutter 2.12.0。

英文:

You need to do either downgrade flutter version or need to update animated_floatbutton plugin for latest flutter version.because this plugin version not supported for flutter version 2.12.0

答案2

得分: 0

问题中指定的软件包(animated_floatactionbuttons)应该升级到与您当前的Dart SDK版本兼容的版本。

animated_floatactionbuttons版本不支持空安全,而您的SDK版本支持空安全。

解决方案是将animated_floatactionbuttons软件包版本升级到符合您当前Dart SDK要求的版本。如果没有此软件包的更新版本,那么我认为您需要找到一个替代软件包来使用。

英文:

The package specified in the issue (animated_floatactionbuttons) should be upgraded to a version that is compatible with your current Dart SDK version.

The animated_floatactionbuttons version is not null safety enabled while your SDK version is null safety enabled.

Solution will be to upgrade the aimated_floatactionbuttons package version to a version that meet your current Dart SDK requirements. If there are no updated version of this package, then I think you need to find an alternative package to make use of.

huangapple
  • 本文由 发表于 2023年7月13日 19:04:04
  • 转载请务必保留本文链接:https://go.coder-hub.com/76678645.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定