【问题标题】:Depends on both cloud_firestore 0.14.4 and http 0.13.3, version solving failed同时依赖cloud_firestore 0.14.4和http 0.13.3,版本解析失败
【发布时间】:2021-09-11 14:49:09
【问题描述】:

同时依赖于cloud_firestore 0.14.4和http 0.13.3,版本解析失败。

颤振酒吧获取 警告:您正在使用这些被覆盖的依赖项: ! http 0.12.2(0.13.3 可用) !国际版 0.17.0 在客户中运行“flutter pub get”... 2,032 毫秒

颤振酒吧获取 因为 cloud_firestore_web 0.2.1+2 依赖于 http_parser ^3.1.3 并且 cloud_firestore_web 的版本不匹配 >0.2.1+2 =0.13.0 依赖于 http_parser ^4.0.0 而 cloud_firestore 0.14.4 依赖于 cloud_firestore_web ^0.2.1+2,所以 http >=0.13.0 与 cloud_firestore 0.14.4 不兼容。 所以,因为dailysauda同时依赖cloud_firestore 0.14.4和http 0.13.3,所以版本解析失败。 在客户中运行“flutter pub get”... pub get failed (1;所以,因为dailysauda同时依赖于cloud_firestore 0.14.4和http 0.13.3,版本解析失败。)

【问题讨论】:

    标签: http google-cloud-firestore version


    【解决方案1】:

    我建议使用最新版本的软件包。

    截至本回复,最新版本为:

    cloud_firestore: ^2.2.2
    http: ^0.13.3
    

    这应该可以解决您的问题。

    其背后的原因可能是具有新功能(例如可空检查等)的软件包的差异。

    【讨论】:

    • 立即获取 因为 firebase_auth 0.18.4+1 依赖于 firebase_core_platform_interface ^2.1.0 而 cloud_firestore >=2.1.0 依赖于 firebase_core_platform_interface ^4.0.1,所以 firebase_auth 0.18.4+1 与 cloud_firestore 不兼容 > =2.1.0。所以,因为dailysauda同时依赖cloud_firestore ^2.2.2和firebase_auth 0.18.4+1,版本解析失败。在客户中运行“flutter pub get”... pub get failed (1; 所以,因为dailysauda 依赖于cloud_firestore ^2.2.2 和firebase_auth 0.18.4+1,版本解析失败。)
    • 请分享您的 pubspec.yaml 文件的内容
    猜你喜欢
    • 2022-07-26
    • 2021-02-16
    • 2021-09-28
    • 2019-08-03
    • 1970-01-01
    • 2021-10-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多