Flutterfire: πŸ› [firebase_auth] Incompatible with latest flutter_localizations master channel.

Created on 7 Dec 2020  Β·  5Comments  Β·  Source: FirebaseExtended/flutterfire

Reported by @Macacoazul01 on flutter repo. flutter/flutter#71801

I've tried to use flutter localizations package on my app to change the showdatepicker widget language, but when i add it to my pub there is a conflict with firebase auth:

dependencies:
  flutter:
    sdk: flutter
  flutter_localizations: # Add this line
    sdk: flutter
  firebase_auth: ^0.18.4
  firebase_core: ^0.5.3
[assets_apps] flutter pub get
Running "flutter pub get" in assets_apps...                     
Because firebase_auth >=0.18.4 depends on firebase_auth_web ^0.3.2+2 which depends on intl ^0.16.1, firebase_auth >=0.18.4 requires intl ^0.16.1.

And because every version of flutter_localizations from sdk depends on intl 0.17.0-nullsafety.2, firebase_auth >=0.18.4 is incompatible with flutter_localizations from sdk.

So, because assets_apps depends on both flutter_localizations any from sdk and firebase_auth ^0.18.4, version solving failed.
pub get failed (1; So, because assets_apps depends on both flutter_localizations any from sdk and firebase_auth ^0.18.4, version solving failed.)
exit code 1



md5-fb752ce3122da82ad257ced01035efe4



[√] Flutter (Channel master, 1.25.0-5.0.pre.57, on Microsoft Windows [versão 10.0.19042.662], locale pt-BR)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[√] Chrome - develop for the web
[√] Android Studio (version 4.1.0)
[√] VS Code (version 1.51.1)
[√] Connected device (2 available)

β€’ No issues found!

Is there any way of changing the lang of the datepicker to pt-br that doesn't use the flutter_localizations?

auth bug

Most helpful comment

Does anyone know a working version pair of firebase_auth and flutter_localizations?
I'm currently having this issue and don't know which version I should roll back to.

All 5 comments

Reproducible on the latest master 1.25.0-5.0.pre.91.


flutter doctor -v

[√] Flutter (Channel master, 1.25.0-5.0.pre.91, on Microsoft Windows [Version 10.0.19041.630], locale et-EE)
    β€’ Flutter version 1.25.0-5.0.pre.91 at C:\Development\flutter_master
    β€’ Framework revision 7dade22f25 (20 hours ago), 2020-12-06 21:34:04 +0530
    β€’ Engine revision 6491c7518f
    β€’ Dart version 2.12.0 (build 2.12.0-120.0.dev)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    β€’ Android SDK at C:\Users\marku\AppData\Local\Android\sdk
    β€’ Platform android-30, build-tools 30.0.2
    β€’ Java binary at: C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\201.6953283\jre\bin\java
    β€’ Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    β€’ All Android licenses accepted.

[√] Chrome - develop for the web
    β€’ Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.7.7)
    β€’ Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    β€’ Visual Studio Community 2019 version 16.7.30621.155
    β€’ Windows 10 SDK version 10.0.18362.0

[√] Android Studio (version 4.1.0)
    β€’ Android Studio at C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\201.6953283
    β€’ Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    β€’ Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    β€’ Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] IntelliJ IDEA Ultimate Edition (version 2020.3)
    β€’ IntelliJ at C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\203.5981.155
    β€’ Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    β€’ Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart

[√] Connected device (5 available)
    β€’ SM G950F (mobile)           β€’ ce12171c51cc001c03 β€’ android-arm64  β€’ Android 9 (API 28)
    β€’ sdk gphone x86 arm (mobile) β€’ emulator-5554      β€’ android-x86    β€’ Android 11 (API 30) (emulator)
    β€’ Windows (desktop)           β€’ windows            β€’ windows-x64    β€’ Microsoft Windows [Version 10.0.19041.630]
    β€’ Chrome (web)                β€’ chrome             β€’ web-javascript β€’ Google Chrome 87.0.4280.88
    β€’ Edge (web)                  β€’ edge               β€’ web-javascript β€’ Microsoft Edge 87.0.664.47

β€’ No issues found!

They've told me to reopen the issue here on flutterfire, but seems it's already made by the team.
Like @markusaksli-nc said, the error happens in the latest master too.

Does anyone know a working version pair of firebase_auth and flutter_localizations?
I'm currently having this issue and don't know which version I should roll back to.

Beta (1.24.0-10.2.pre) works with latest firebase_auth. Unfortunately I have other dependencies that break when I switch to beta.

I just downgraded Flutter to v1.22.4 and everything started to work again!

Was this page helpful?
0 / 5 - 0 ratings