FAILURE: Build failed with an exception.

순9·2022년 12월 20일
0

Error

목록 보기
1/11

FAILURE: Build failed with an exception.

* Where:
Script 'C:\Users\000\libraries\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1159

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\Users\000\libraries\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 4s
Exception: Gradle task assembleDebug failed with exit code 1

2022/12/27
시도 - 에러 계속 남

플러터, 안스, 비쥬얼스튜디오 다시 재 설치 후
에뮬레이터 업데이트 하는데 오류남??

2022/12/28
시도 - 해결

  • 플러터 버전 원상태로 돌림
  • 아래 링크중 1번 참고 했음
  1. 프로젝트 폴더 -> build 폴더 제거 로 실행
  2. 프로젝트 폴더 -> android 폴더 -> build 폴더 제거
    1번으로 실행 후 빌드 하니 원상태로 잘 나옴
    빌드하다가 어디 부부인데서 꼬인거 같음..
    https://velog.io/@jungti1234/Flutter-Android-Execution-failed-for-task-appcompileFlutterBuildDebug.-%ED%95%B4%EA%B2%B0%EB%B0%A9%EB%B2%95
    https://velog.io/@jungti1234/Flutter-iOS-xcode-FlutterFlutter.h-file-not-found-%ED%95%B4%EA%B2%B0%EB%B0%A9%EC%95%88

참고
https://github.com/flutter/flutter/issues/49507

profile
1. 사용법 익히기 2. 원리가 뭔지 찾아보기 3. 원리를 공부하기

0개의 댓글