Flutter 包依赖解析问题
Flutter package dependency resolution issue
我在 pubspec.yaml 中有以下内容:
provider: ^5.0.0
google_maps_place_picker: ^1.0.1
但是当我 运行 发布时,我收到以下错误:
Because google_maps_place_picker 1.0.1 depends on provider ^4.0.1 and no versions of
gogle_maps_place_picker match >1.0.1 <2.0.0, google_maps_place_picker ^1.0.1 requires provider ^4.0.1.
So, because myappxxx depends on both provider ^5.0.0 and google_maps_place_picker ^1.0.1, version solving failed.
pub get failed (1; So, because myappxxx depends on both provider ^5.0.0 and google_maps_place_picker ^1.0.1, version solving failed.)
解决此依赖关系的正确方法是什么?
我从未使用过 google_maps_place_picker 但您可能只需要将此依赖项更新到最新版本即可:https://pub.dev/packages/google_maps_place_picker/versions/2.0.0-nullsafety.3.
google_maps_place_picker: ^1.0.1
--> google_maps_place_picker: ^2.0.0-nullsafety.3
我在 pubspec.yaml 中有以下内容:
provider: ^5.0.0
google_maps_place_picker: ^1.0.1
但是当我 运行 发布时,我收到以下错误:
Because google_maps_place_picker 1.0.1 depends on provider ^4.0.1 and no versions of
gogle_maps_place_picker match >1.0.1 <2.0.0, google_maps_place_picker ^1.0.1 requires provider ^4.0.1.
So, because myappxxx depends on both provider ^5.0.0 and google_maps_place_picker ^1.0.1, version solving failed.
pub get failed (1; So, because myappxxx depends on both provider ^5.0.0 and google_maps_place_picker ^1.0.1, version solving failed.)
解决此依赖关系的正确方法是什么?
我从未使用过 google_maps_place_picker 但您可能只需要将此依赖项更新到最新版本即可:https://pub.dev/packages/google_maps_place_picker/versions/2.0.0-nullsafety.3.
google_maps_place_picker: ^1.0.1
--> google_maps_place_picker: ^2.0.0-nullsafety.3