I have a Flutter app that is connected to firebase, and after this last update of flutter and Dart, I started getting these dependency errors:
The current Dart SDK version is 2.10.2.
Because my_app_one depends on firebase_messaging >=9.0.0-1.0.nullsafety.0 which requires SDK version >=2.12.0-0 <3.0.0, version solving failed.
pub get failed (1; Because my_app_onedepends on firebase_messaging >=9.0.0-1.0.nullsafety.0 which requires SDK version >=2.12.0-0 <3.0.0, version solving failed.)
I tried to research this error, I found some solutions, but they did not solve this case.
pubspec.yaml/ dependencies:
firebase_analytics: ^7.1.1
firebase_core: ^1.0.1
firebase_crashlytics: ^1.0.0
firebase_messaging: ^9.0.0
Flutter doctor:
[√] Flutter (Channel stable, 1.22.2, on Microsoft Windows [versão 10.0.19041.804], locale pt-BR)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Android Studio (version 4.0)
[√] VS Code (version 1.54.1)
[√] Connected device (1 available)
• No issues found!