【问题标题】:Dependencies error 1 not solivng problem google_maps依赖项错误 1 ​​未解决问题 google_maps
【发布时间】:2021-12-24 07:26:42
【问题描述】:

我正在尝试升级所有依赖项,但仍然显示此错误。我试图覆盖它们,但显示没有权限错误。我已经尝试运行flutter pub cache repairflutter pub get,但不确定是否需要删除缓存或在另一个文件中重新安装flutter,请任何建议都可以帮助。

Because google_map_polyline >=0.0.4 <0.2.0 depends on google_maps_flutter ^0.5.21+4 and google_map_polyline <0.0.4 depends on google_maps_flutter ^0.5.19+2, google_map_polyline <0.2.0 requires google_maps_flutter ^0.5.19+2.
And because google_map_polyline >=0.2.0 depends on google_maps_flutter ^0.5.21+6, every version of google_map_polyline requires google_maps_flutter ^0.5.19+2.
So, because fletgo_user_app depends on both google_maps_flutter ^2.1.0 and google_map_polyline any, version solving failed.
pub get failed (1; So, because fletgo_user_app depends on both google_maps_flutter ^2.1.0 and google_map_polyline any, version solving failed.)
Process finished with exit code 1

【问题讨论】:

    标签: flutter dart dependencies


    【解决方案1】:

    出现错误是因为 google_map_polyline 设置为“任意”。但真正的问题出现了,因为google_map_polyline 已经停产

    我建议您更改库并使用 flutter_polyline_points 进行迁移

    【讨论】:

    • 谢谢你我会尝试那个,我也试图通过使用颤振在我的应用程序中添加 conekta 作为我的桥梁,但我有点困惑,你能帮我或建议一个简单的方法吗?欣赏!
    • 我从未使用过 conekta,还没有。如果解决了您的问题,请将其标记为已接受的答案:)
    猜你喜欢
    • 1970-01-01
    • 2015-12-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-06
    • 1970-01-01
    • 2016-03-20
    相关资源
    最近更新 更多