无法在flatter中使用配置单元插件

qkf9rpyu  于 2021-06-24  发布在  Hive
关注(0)|答案(2)|浏览(388)

Flutter酒吧得到给予错误

Running "flutter pub get" in practice...                        
Because every version of flutter_test from sdk depends on quiver 2.1.3 and practice depends on quiver 2.1.0, flutter_test from sdk is forbidden.

So, because practice depends on flutter_test any from sdk, version solving failed.
pub get failed (1; So, because practice depends on flutter_test any from sdk, version solving failed.)
exit code 1

我正在使用的版本

[√] Flutter (Channel dev, v1.18.0, on Microsoft Windows [Version 10.0.18363.752], locale en-IN)
    • Flutter version 1.18.0 at C:\src\flutter
    • Framework revision 8f7327f83a (3 weeks ago), 2020-04-06 22:11:01 -0400
    • Engine revision 49891e0653
    • Dart version 2.8.0 (build 2.8.0-dev.20.0 1210d27678)
yacmzcpb

yacmzcpb1#

您可能需要添加一个插件。

dependency_overrides:
  dartx: ^0.3.0
ybzsozfc

ybzsozfc2#

两者 flutter_test 以及 practice 取决于 quiver 包,但每个都有不同的版本。您可以强制使用最新版本的 quiver 这样你就可以通过考试了 flutter pub get 没有错误:

dependency_overrides:
  quiver: 2.1.3

相关问题