英文:
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?
答案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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论