我正在开发一个项目,需要一些我在pubspec.yaml中添加的依赖项

dependencies:

  flutter:

    sdk: flutter

  google_sign_in: "^0.3.1"

  firebase_auth: "^0.2.3"


  http: "^0.11.3+16"

  # The following adds the Cupertino Icons font to your application.

  # Use with the CupertinoIcons class for iOS style icons.

  cupertino_icons: ^0.1.0

  flutter_markdown: "^0.1.5"

  url_launcher: "^3.0.1"

  share: "^0.4.0"

当我点击pubspec.yaml中的Packages Get时,它显示了这一点

C:\Flutter\bin\flutter.bat --no-color packages get

Running "flutter packages get" in list_drag_drop...

Process finished with exit code 0

当我点击pubspec.yaml中的Get Dependencies时,它显示了这一点

Working dir: D:\Flutter proj downloaded\list_drag_drop

C:\Flutter\bin\cache\dart-sdk\bin\pub.bat get

Resolving dependencies...

Because share 0.4.0 requires the Flutter SDK and no versions of share match>0.4.0 <0.5.0, share ^0.4.0 is forbidden.

所以,因为 list_drag_drop 依赖于share ^ 0.4.0,版本求解失败了 .

Flutter用户应该运行 flutter packages get 而不是 pub get . 进程以退出代码1结束

当我运行我的项目时,它坚持解决依赖关系 . 请有人帮忙,我用Google搜索但无法解决问题 . 我安装了颤动和飞镖插件 .