FAILURE: Build failed with an exception.
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 991
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1
The solution that worked for me was:
pubspec.lock
fileflutter pub get
And it worked.
I was able to get around this by running with null safety turned off. See this article for details.
dart --no-sound-null-safety run
flutter run --no-sound-null-safety
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With