SWM-15th-Dnight / flutter-client

android / ios client source code
0 stars 0 forks source link

플러터 3.24.4로 업데이트 후 알 수 없는 프로젝트 빌드 오류 #42

Closed call-me-bammer closed 4 weeks ago

call-me-bammer commented 4 weeks ago

flutter upgrade, clean, pub get 다시 받고 빌드가 안돌아가서 접어두고 있다가, 방금 SDK도 새로 갈았지만 그대로 이길래,

splash_screen.dart 1:8 에러 코드보고 사용 안하는 라이브러리 들어가있어서

import 'dart:nativewrappers/_internal/vm/lib/ffi_allocation_patch.dart'; 만 지우니까 빌드 문제 해결됨.

그래도 심심하면 Invalid depfile 에러가 나긴하는데, 2번 이상 빌드하면 없어짐.

Invalid depfile: /Users/bammer/Desktop/git/flutter-client/.dart_tool/flutter_build/d64f5b552fe6c3d3600a4a45deb2d9a1/kernel_snapshot_program.d
Invalid depfile: /Users/bammer/Desktop/git/flutter-client/.dart_tool/flutter_build/d64f5b552fe6c3d3600a4a45deb2d9a1/kernel_snapshot_program.d
Invalid depfile: /Users/bammer/Desktop/git/flutter-client/.dart_tool/flutter_build/d64f5b552fe6c3d3600a4a45deb2d9a1/kernel_snapshot_program.d
Invalid depfile: /Users/bammer/Desktop/git/flutter-client/.dart_tool/flutter_build/d64f5b552fe6c3d3600a4a45deb2d9a1/kernel_snapshot_program.d

아래는 에러 코드들임. splash_screen.dart 1:8가 분명히 나왔었는데 억지로 재현하지는 않겠음.

Running Gradle task 'assembleDebug'...
Unhandled exception:
FileSystemException(uri=org-dartlang-untranslatable-uri:dart%3Anativewrappers%2F_internal%2Fvm%2Flib%2Fffi_allocation_patch.dart; message=StandardFileSystem only supports file:* and data:* URIs)
#0      StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:35)
#1      asFileUri (package:vm/kernel_front_end.dart:792)
#2      writeDepfile (package:vm/kernel_front_end.dart:932)
<asynchronous suspension>
#3      FrontendCompiler.compile (package:frontend_server/frontend_server.dart:704)
<asynchronous suspension>
#4      starter (package:frontend_server/starter.dart:109)
<asynchronous suspension>
#5      main (file:///Volumes/Work/s/w/ir/x/w/sdk/pkg/frontend_server/bin/frontend_server_starter.dart:13)
<asynchronous suspension>

Target kernel_snapshot_program failed: Exception

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/Users/bammer/development/flutter/bin/flutter'' 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 2s
Error: Gradle task assembleDebug failed with exit code 1
Invalid depfile: /Users/bammer/Desktop/git/flutter-client/.dart_tool/flutter_build/d64f5b552fe6c3d3600a4a45deb2d9a1/kernel_snapshot_program.d
Invalid depfile: /Users/bammer/Desktop/git/flutter-client/.dart_tool/flutter_build/d64f5b552fe6c3d3600a4a45deb2d9a1/kernel_snapshot_program.d
Invalid depfile: /Users/bammer/Desktop/git/flutter-client/.dart_tool/flutter_build/d64f5b552fe6c3d3600a4a45deb2d9a1/kernel_snapshot_program.d
Invalid depfile: /Users/bammer/Desktop/git/flutter-client/.dart_tool/flutter_build/d64f5b552fe6c3d3600a4a45deb2d9a1/kernel_snapshot_program.d
Unhandled exception:
FileSystemException(uri=org-dartlang-untranslatable-uri:dart%3Anativewrappers%2F_internal%2Fvm%2Flib%2Fffi_allocation_patch.dart; message=StandardFileSystem only supports file:* and data:* URIs)
#0      StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:35)
#1      asFileUri (package:vm/kernel_front_end.dart:792)
#2      writeDepfile (package:vm/kernel_front_end.dart:932)
<asynchronous suspension>
#3      FrontendCompiler.compile (package:frontend_server/frontend_server.dart:704)
<asynchronous suspension>
#4      starter (package:frontend_server/starter.dart:109)
<asynchronous suspension>
#5      main (file:///Volumes/Work/s/w/ir/x/w/sdk/pkg/frontend_server/bin/frontend_server_starter.dart:13)
<asynchronous suspension>

Target kernel_snapshot_program failed: Exception

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/Users/bammer/development/flutter/bin/flutter'' 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 2s
Error: Gradle task assembleDebug failed with exit code 1