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


