firebase 身份验证和 url_launcher 版本冲突

firebase auth and url_launcher version conflicts

我们是一个使用 Flutter 开发小型 android 应用程序的团队。 当我尝试合并 2 个分支时,一个使用 firebase (Auth),另一个使用 url_launcher。 我在尝试 flutter pub get

时不断收到此错误
flutter pub get
Running "flutter pub get" in aeroday-2021-main...               
Because no versions of firebase_auth match >0.20.1 <0.21.0 and firebase_auth 0.20.1 depends on firebase_auth_platform_interface ^3.1.0, firebase_auth ^0.20.1 requires firebase_auth_platform_interface ^3.1.0.

And because no versions of firebase_auth_platform_interface match >3.1.0 <4.0.0, firebase_auth ^0.20.1 requires firebase_auth_platform_interface 3.1.0.

And because firebase_auth_platform_interface 3.1.0 depends on plugin_platform_interface ^1.0.2 and url_launcher_platform_interface >=2.0.2 depends on plugin_platform_interface ^2.0.0, firebase_auth ^0.20.1 is incompatible with url_launcher_platform_interface >=2.0.2.

And because url_launcher 6.0.9 depends on url_launcher_platform_interface ^2.0.3 and no versions of url_launcher match >6.0.9 <7.0.0, firebase_auth ^0.20.1 is incompatible with url_launcher ^6.0.9.

So, because aeroday_2021 depends on both url_launcher ^6.0.9 and firebase_auth ^0.20.1, version solving failed.
pub get failed (1; So, because aeroday_2021 depends on both url_launcher ^6.0.9 and firebase_auth ^0.20.1, version solving failed.)
exit code 1

有什么方法或变通方法可以解决此依赖项错误吗?

Pubspec.yaml

    dependencies:
      flutter:
        sdk: flutter
      url_launcher: ^6.0.9
    
    
      # The following adds the Cupertino Icons font to your application.
      # Use with the CupertinoIcons class for iOS style icons.
      google_fonts: ^2.1.0
    
    dev_dependencies:
      flutter_test:
        sdk: flutter
      
      firebase_core: "0.7.0"

      firebase_auth: "^0.20.1"

firebase_auth 更新为以下内容:

firebase_auth: "^3.1.0"