FAILURE: Build failed with an exception.
- Where:
Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1156
- What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'C:\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 21s
Exception: Gradle task assembleDebug failed with exit code 1
해결방법
pubspec.lock 삭제하고 'Pub Get'을 누르면 pubspec.yaml에서 pubspec.lock 파일이 다시 생성되어 문제가 해결 됨