The language version must be >=2.12.0. error in flutter I am receiving the following error in the line // @dart=2.9 My dart version is 3.0.3 I am receiving this error due to which my application is not running Earlier this was working fine now the same line of code is giving error in all my projects
Asked
Active
Viewed 183 times
0
-
1share your yaml config. – Jay Jun 08 '23 at 13:14
-
environment: sdk: ">=2.12.0 <3.0.0" flutter_localizations: sdk: flutter intl: 0.17.0 dependencies: flutter: sdk: flutter – shubhangi mishra Jun 08 '23 at 13:33
-
try updating your intl package. it's old https://pub.dev/packages/intl/versions/0.17.0-nullsafety to latest https://pub.dev/packages/intl package. – Jay Jun 08 '23 at 13:37
-
the new version of intl is not supporting the rest of packages that i have used – shubhangi mishra Jun 08 '23 at 13:40
-
Try using intl 18.0.0 instead of 18.0.1 and also upgrade other packages. – belinda.g.freitas Jun 08 '23 at 14:06
-
Tried that as well. Did not work. Error is still there – shubhangi mishra Jun 08 '23 at 19:51
-
flutter run --no-sound-null-safety use this command as a workaround. See if this help – Đức Thành Lê Jun 11 '23 at 08:17
-
Could not find an option named "no-sound-null-safety". is the error I am receiving when I run this command – shubhangi mishra Jun 13 '23 at 16:31