【问题标题】:integration_test from sdk is incompatible with firebase_storage_web来自 sdk 的 integration_test 与 firebase_storage_web 不兼容
【发布时间】:2021-05-20 05:57:54
【问题描述】:

在我的 Flutter Web 应用程序中添加 firebase_storage: ^7.0.0 时遇到以下错误。

因为来自 sdk 的每个版本的 integration_test 都依赖于 crypto 3.0.0,每个版本的 firebase_storage_web 都依赖于 crypto ^2.1.5,所以来自 sdk 的 integration_test 与 firebase_storage_web 不兼容。 并且因为 firebase_storage >=7.0.0 依赖于 firebase_storage_web ^0.1.1+3,所以来自 sdk 的 integration_test 与 firebase_storage >=7.0.0 不兼容。 因此,由于accounting_ca 依赖于sdk 中的firebase_storage ^7.0.0 和integration_test any,版本解决失败。 pub get failed (1; 所以,因为 accounting_ca 依赖于 firebase_storage ^7.0.0 和 integration_test any from sdk,版本解决失败。)

谢谢

【问题讨论】:

  • 能否提供您的pubspec.yaml 文件的示例?我想你的开发需要integration_test

标签: firebase flutter google-cloud-firestore firebase-storage dart-pub


【解决方案1】:

在 pubspec.yaml 中删除 integration_test。

之前:

    dev_dependencies:
     flutter_test:
      sdk: flutter
     integration_test:
      sdk: flutter

之后:

    dev_dependencies:
     flutter_test:
      sdk: flutter

应该有帮助。

【讨论】:

  • 我已经从 yaml 文件中的一些依赖项中删除了版本号,它工作了..
猜你喜欢
  • 1970-01-01
  • 2016-07-22
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-10-27
相关资源
最近更新 更多