Flutter path_provider 和 connectivity_plus 版本解决失败

Flutter path_provider and connectivity_plus version solving failed

由于 path_provider 包的版本冲突问题,我无法安装 Flutter 的连接包。我尝试交换两个包的不同版本,但没有成功。谁能在这里指导我如何解决此问题?

日志错误:

   Because connectivity_plus >=1.0.2 depends on connectivity_plus_platform_interface ^1.0.2 which depends on plugin_platform_interface ^2.0.0, connectivity_plus >=1.0.2 requires plugin_platform_interface ^2.0.0.
    And because path_provider >=1.6.4 <2.0.0-nullsafety depends on path_provider_platform_interface ^1.0.1 which depends on plugin_platform_interface ^1.0.1, connectivity_plus >=1.0.2 is incompatible with path_provider >=1.6.4 <2.0.0-nullsafety.
    So, because cliffjumper depends on both path_provider ^1.6.11 and connectivity_plus ^1.0.5, version solving failed.
    pub get failed (1; So, because cliffjumper depends on both path_provider ^1.6.11 and connectivity_plus ^1.0.5, version solving failed.)

在 pubspec.yaml 文件中:

enter code version: 1.0.0+1
    
    environment:
      sdk: ">=2.7.0 <3.0.0"
    
    dependencies:
      flutter:
        sdk: flutter
    
    
      # The following adds the Cupertino Icons font to your application.
      # Use with the CupertinoIcons class for iOS style icons.
      cupertino_icons: ^0.1.3
      rxdart: ^0.26.0
      sqflite: ^1.3.1
      path_provider: ^1.6.11
      http: ^0.12.1
      #flutter_facebook_login: ^3.0.0
      #google_sign_in: ^4.5.1
      flutter_blue: ^0.8.0
      google_maps_flutter: ^2.0.5
      geolocator: ^6.1.6
      device_info: ^2.0.0
      shared_preferences: ^0.5.10
      crypto: ^3.0.1
      uuid: ^3.0.4
      latlong: ^0.6.1
      geocoder: ^0.2.1
      us_states: ^1.0.3
      package_info: ^0.4.3+2
      weather: ^1.2.4
      connectivity_plus: ^1.0.5

尝试将所有插件更新到最新版本或简单地使用 'any' 关键字而不是版本代码