【问题标题】:i have upgraded flutter 1.22.6 to flutter 2.0.1.. but now dependency packages are throwing error我已将颤振 1.22.6 升级到颤振 2.0.1 .. 但现在依赖包抛出错误
【发布时间】:2021-06-09 03:34:18
【问题描述】:

因为 google_api_headers =0.4.0 =0.2.0-nullsafety.0 =0.4.0 =0.2.7 依赖于google_api_headers >=0.1.0 =0.2.7 与google_map_location_picker 4.1.7 不兼容。 因为 google_map_location_picker >=4.1.3 4.1.7 =4.1.3 4.1.7 =0.2.7 并且 google_map_location_picker ^4.1.3 那么提供者 ^4.3.3。 并且由于项目依赖于 google_map_location_picker ^4.1.3,flutter_google_places >=0.2.7 需要提供者 ^4.3.3。 因此,由于项目同时依赖于 flutter_google_places ^0.2.8 和提供者 ^5.0.0,版本求解失败。 在 wh-driver 中运行“flutter pub get”... pub get failed (1; 所以,由于项目同时依赖于flutter_google_places ^0.2.8 和provider ^5.0.0,版本解析失败。)

【问题讨论】:

    标签: flutter dependencies upgrade


    【解决方案1】:

    这是版本控制错误,解决方案仅在官方文档中,请阅读here

    【讨论】:

      【解决方案2】:

      唯一的解决方案是匹配相互支持的依赖关系并覆盖不满足这种匹配的依赖关系

      【讨论】:

        猜你喜欢
        • 2021-03-05
        • 2020-07-22
        • 2020-06-20
        • 2021-05-01
        • 2023-02-02
        • 1970-01-01
        • 2019-09-27
        • 2021-11-26
        • 1970-01-01
        相关资源
        最近更新 更多