[Flutter] Execution failed for task ':app:compileFlutterBuildDebug' 오류

Do-Y·2024년 10월 22일
0

Flutter

목록 보기
1/5

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 파일이 다시 생성되어 문제가 해결 됨

profile
개발 Do

0개의 댓글