I updated my App to the latest version of the Flutter. E:\anmol\Jan' 2021 -Backup\nemar_user_(for_new_packages)>flutter --version Flutter 2.0.3 • channel stable • https://github.com/flutter/flutter.git Framework • revision 4d7946a68d (3 days ago) • 2021-03-18 17:24:33 -0700 Engine • revision 3459eb2436 Tools • Dart 2.12.2
Along with that, I upgraded new packages in pubspec.yaml When I run my app, then it shows the following errors, I tried so many things but nothing Works. Any Kind of Help would be appreciated.
/E:/flutterSDK/flutter/.pub-cache/hosted/pub.dartlang.org/expandable_text-1.3.2/lib/expandable_text.dart:153:56: Error: No named parameter with the name 'nullOk'. final locale = Localizations.localeOf(context, nullOk: true); ^^^^^^ /E:/flutterSDK/flutter/packages/flutter/lib/src/widgets/localizations.dart:413:17: Context: Found this candidate, but the arguments don't match. static Locale localeOf(BuildContext context) { ^^^^^^^^
FAILURE: Build failed with an exception.
Where: Script 'E:\flutterSDK\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 991
What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'E:\flutterSDK\flutter\bin\flutter.bat'' finished with non-zero exit value 1
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 46s Exception: Gradle task assembleDebug failed with exit code 1