Flutter问题-sdk中的Flutter_driver取决于文件5.0.6,而flutter_gallery取决于文件5.0.7

时间:2019-01-21 16:04:29

标签: flutter

我使用flutter软件包get遇到了这个问题:

Because every version of flutter_driver from sdk depends on file 5.0.6 and flutter_gallery depends on file 5.0.7, flutter_driver from sdk is forbidden. So, because flutter_gallery depends on flutter_driver any from sdk, version solving failed. pub upgrade failed (1)

我不知道该怎么办,我正在尝试编译以下示例:https://github.com/flutter/flutter/tree/master/examples/flutter_gallery

2 个答案:

答案 0 :(得分:1)

这可能是因为抖动依赖性已锁定为固定版本。

您可以在 pubspec.yaml 中进行检查,以查看

中的flutter_driver。
  

\ flutter \ packages \ flutter_driver

并将其与GitHub的最新版本进行比较

如果是这样, Flutter升级不一定会更新依赖项版本。强制更新软件包可能会解决您的问题。

flutter update-packages --force-upgrade

答案 1 :(得分:0)

确保您正在使用flutter安装文件夹中的本地示例(以确保使用相同版本)