-1

I've a Flutter app, that was running properly on Flutter 3.0, but after migrating to Null Safety, I receive this while trying to run:

FAILURE: Build failed with an exception.

* Where:
Script 'C:\apps\flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1156

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\apps\flutter\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 29s
Exception: Gradle task assembleDebug failed with exit code 1
AVEbrahimi
  • 17,993
  • 23
  • 107
  • 210

1 Answers1

-1

Go to pubspec.yaml file, try doing Packages get | Pub get, and then build the project again.

Ali Punjabi
  • 452
  • 4
  • 19