[英]Error in upgrade flutter from current version to latest
After i upgrade flutter from current version to latest inside my studio terminal by running flutter upgrade got following error. 在我通过运行flutter升级将flutter从当前版本升级到Studio终端中的最新版本后,出现以下错误。
The current Dart SDK version is 2.1.0-dev.0.0.flutter-be6309690f.
Because no versions of uri match >0.11.3 <0.12.0 and uri >=0.7.1 <0.11.3 requires SDK version >=0.8.10 <2.0.0 or >=2.0.0-dev.18 <2.0.0, uri >=0.7.1 <0.11.3-∞ or >0.11.3 <0.12.0 is forbidden.
And because uri 0.11.3 depends on quiver >=0.17.0 <0.30.0 and every version of flutter_test from sdk depends on quiver 2.0.0+1, flutter_test from sdk is incompatible with uri >=0.7.1 <0.12.0.
And because map_view 0.0.14 depends on uri ^0.11.1 and no versions of map_view match >0.0.14 <0.1.0, flutter_test from sdk is incompatible with map_view ^0.0.14.
So, because maskn depends on both map_view ^0.0.14 and flutter_test any from sdk, version solving failed.
pub get failed (1)
How can i solve this issue? 我该如何解决这个问题? Any way to downgrade from latest to my older version? 有什么办法可以将最新版本降级到我的旧版本?
Adding this to pubpsec.yaml
should work around until an uri
version is released that supports Dart 2.0.0 在发布支持Dart 2.0.0的uri
版本之前,应将其添加到pubpsec.yaml
dependency_overrides:
quiver: ^2.0.0+1
There's this thread on github that closely mirrors your problem. github上有一个线程与您的问题密切相关。
Basically you have to look for the offending plugin's .pubspec.yaml
and edit it this way: 基本上,您必须查找有问题的插件的.pubspec.yaml
并以这种方式进行编辑:
environment:
sdk: ">=2.0.0-dev.58.0 <3.0.0"
Let me know if this is helpful. 让我知道这是否有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.