无法'发布添加geoflutterfire'

bhmjp9jg  于 2023-02-05  发布在  Flutter
关注(0)|答案(1)|浏览(94)

我无法添加geoflutterfire模块。
我真的不知道我应该做什么,因为我刚刚升级了flutter pub upgrade的所有模块。
这是我得到的:

flutter pub add geoflutterfire
    Because cached_network_image >=3.2.0 depends on flutter_cache_manager ^3.3.0 which depends on rxdart >=0.26.0 <0.28.0, cached_network_image >=3.2.0 requires rxdart >=0.26.0 <0.28.0.
    Because geoflutterfire >=2.0.3+3 <2.0.3+7 depends on rxdart ^0.22.0 and geoflutterfire <2.0.3+3 depends on rxdart ^0.20.0, geoflutterfire <2.0.3+7 requires rxdart ^0.20.0 or ^0.22.0.
    Thus, cached_network_image >=3.2.0 is incompatible with geoflutterfire <2.0.3+7.
    And because geoflutterfire >=3.0.0-nullsafety.3 <3.0.2 depends on rxdart ^0.27.0 and geoflutterfire >=2.2.3 <3.0.0-nullsafety.1 depends on rxdart ^0.27.3, if cached_network_image >=3.2.0 and geoflutterfire <2.0.3+7 or >=2.2.3 <3.0.0-nullsafety.1 or >=3.0.0-nullsafety.3 <3.0.2-∞ then rxdart ^0.27.0.
    And because geoflutterfire >=2.2.2 <2.2.3 depends on cloud_firestore ^0.16.0 and geoflutterfire >=2.2.1 <2.2.2 depends on cloud_firestore ^0.14.0+2, if cached_network_image >=3.2.0 and geoflutterfire <2.0.3+7 or >=2.2.1 <3.0.0-nullsafety.1 or >=3.0.0-nullsafety.3 <3.0.2-∞ then rxdart ^0.27.0 or cloud_firestore ^0.14.0+2 or ^0.16.0.
(1) So, because geoflutterfire >=2.0.3+6 <2.2.1 depends on cloud_firestore ^0.13.0+1 and geoflutterfire >=3.0.0-nullsafety.1 <3.0.0-nullsafety.3 depends on cloud_firestore ^1.0.0, if cached_network_image >=3.2.0 and geoflutterfire <3.0.2 then rxdart ^0.27.0 or cloud_firestore ^0.13.0+1 or ^0.14.0+2 or ^0.16.0 or ^1.0.0.

    Because geoflutterfire >=3.0.0-nullsafety.1 <3.0.0-nullsafety.3 depends on rxdart ^0.26.0 and geoflutterfire >=3.0.0-nullsafety.3 <3.0.1 depends on cloud_firestore ^2.0.0, geoflutterfire >=3.0.0-nullsafety.1 <3.0.1 requires rxdart ^0.26.0 or cloud_firestore ^2.0.0.
    And because geoflutterfire <2.0.3+3 depends on rxdart ^0.20.0, geoflutterfire <2.0.3+3 or >=3.0.0-nullsafety.1 <3.0.1-∞ requires rxdart ^0.20.0 or ^0.26.0 or cloud_firestore ^2.0.0.
    And because geoflutterfire >=2.0.3+3 <2.0.3+7 depends on rxdart ^0.22.0 and geoflutterfire >=2.0.3+7 <2.2.1 depends on rxdart ^0.23.1, geoflutterfire <2.2.1-∞ or >=3.0.0-nullsafety.1 <3.0.1-∞ requires rxdart ^0.20.0 or ^0.22.0 or ^0.23.1 or ^0.26.0 or cloud_firestore ^2.0.0.
    And because geoflutterfire >=2.2.1 <2.2.2 depends on rxdart ^0.24.1 and geoflutterfire >=2.2.2 <2.2.3 depends on rxdart ^0.25.0, geoflutterfire <2.2.3-∞ or >=3.0.0-nullsafety.1 <3.0.1-∞ requires rxdart ^0.20.0 or ^0.22.0 or ^0.23.1 or ^0.24.1 or ^0.25.0 or ^0.26.0 or cloud_firestore ^2.0.0.
    And because geoflutterfire >=2.2.3 <3.0.0-nullsafety.1 depends on cloud_firestore ^3.1.6 and geoflutterfire >=3.0.1 <3.0.2 depends on cloud_firestore ^2.3.0, geoflutterfire <3.0.2 requires rxdart ^0.20.0 or ^0.22.0 or ^0.23.1 or ^0.24.1 or ^0.25.0 or ^0.26.0 or cloud_firestore >=2.0.0 <3.0.0 or ^3.1.6.
    And because if cached_network_image >=3.2.0 and geoflutterfire <3.0.2 then rxdart ^0.27.0 or cloud_firestore ^0.13.0+1 or ^0.14.0+2 or ^0.16.0 or ^1.0.0 (1), if cached_network_image >=3.2.0 and geoflutterfire <3.0.2 then cloud_firestore ^0.13.0+1 or ^0.14.0+2 or ^0.16.0 or ^1.0.0 or >=2.0.0 <3.0.0 or ^3.1.6.
    And because geoflutterfire >=3.0.2 depends on cloud_firestore ^3.1.6 and shokaze depends on cloud_firestore ^4.2.0, cached_network_image >=3.2.0 is incompatible with geoflutterfire.
    So, because shokaze depends on both cached_network_image ^3.2.3 and geoflutterfire any, version solving failed.
pub finished with exit code 65
ki1q1bka

ki1q1bka1#

这可能是因为在您阅读此消息时,两个或多个包之间存在一些约束。
因此,解决这个问题的一种方法是降级其中的一些包,然后在pubspec.yaml中使用dependency_overrides来使用更高的版本。
我的项目中有一个示例,一些包具有flutter_svg约束,然后在dependencies中使用较低版本,然后在dependency_overrides中使用高版本

那么

而在你的情况下,我已经尝试了这个,它的工作,你可以看看有一个尝试

相关问题