I hope all is good. I’m facing the below error when I try to either run flutter pub get command for dependency installation or running the entire project. Please help
flutter pub get
Resolving dependencies… (3.2s)
The current Dart SDK version is 3.4.3.
Because logger 0.9.4 doesn’t support null safety and no versions of logger match >0.9.4 <0.10.0, logger ^0.9.4 is forbidden.
So, because farmassist depends on logger ^0.9.4, version solving failed.
The lower bound of “sdk: ‘>=2.2.0 <3.0.0′” must be 2.12.0 or higher to enable null safety.
I tried the following methods to resolve the issue but still it didn’t help
- Upgrading the logger package to the latest version
- Trying removing logger dependency from the code and see if it could work
Jeanauguste Desire is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.