커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
flutter 빌드 오류
[왕초보] 플러터(Flutter)로 시작하는 앱개발 종합반 v0
1주차
북마크
김*지
댓글
7
추천
0
조회수
31
조회수
31
답변 완료

안녕하세요. 강의를 따라서 플러터 설치 후 돌리다가, 아래와 같은 빌드 오류가 나서 문의드립니다.

xcode는 용량 때문에 설치하지 않았고, android studio만 설치한 상태입니다.

flutter clean 하고 돌려보아도 같은 오류가 떠서.. 혹시 제가 버전을 잘못 설치한 것일까요?

도움 부탁드립니다.



스파르타 즉문즉답스파르타 즉문즉답스파르타 즉문즉답스파르타 즉문즉답



작성한 코드 및 에러 메세지

Launching lib/main.dart on sdk gphone x86 64 in debug mode...

package:hello_flutter/main.dart:1
2
Invalid depfile: /Users/kim-yunji/Desktop/flutter/hello_flutter/.dart_tool/flutter_build/3a9bdfb17d43c262718534b8625a270d/kernel_snapshot.d

: Error: Dart library 'dart:html' is not available on this platform.

package:hello_flutter/main.dart:1
import 'dart:html';

       ^

Context: The unavailable library 'dart:html' is imported through these packages:

2


    package:hello_flutter => dart:html



Detailed import paths for (some of) the these imports:

2


package:hello_flutter/main.dart => dart:html

package:hello_flutter/main.dart:1
Unhandled exception:

FileSystemException(uri=org-dartlang-untranslatable-uri:dart%3Ahtml; message=StandardFileSystem only supports file:* and data:* URIs)

#0      StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:34:7)

#1      asFileUri (package:vm/kernel_front_end.dart:721:37)



#2      writeDepfile (package:vm/kernel_front_end.dart:861:21)

<asynchronous suspension>



#3      FrontendCompiler.compile (package:frontend_server/frontend_server.dart:660:9)

<asynchronous suspension>

#4      starter (package:frontend_server/starter.dart:99:12)



<asynchronous suspension>

#5      main (file:///opt/s/w/ir/x/w/sdk/pkg/frontend_server/bin/frontend_server_starter.dart:13:14)

<asynchronous suspension>

2


Target kernel_snapshot failed: Exception




FAILURE: Build failed with an exception.

* Where:
Script '/Users/kim-yunji/development/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1159


* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.

> Process 'command '/Users/kim-yunji/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 3s

Exception: Gradle task assembleDebug failed with exit code 1

Exited
스파르타 즉문즉답스파르타 즉문즉답




취소
 공유
취소
댓글 0
댓글 알림
나의얼굴