
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
VSCode 마지막 단계에서 에뮬레이터가 안뜹니다...
flutter doctor를 실행하라고 하는데..
이전 단계에서는 큰 문제 없이 왔는데.. 마지막 단계에서 에러가 나오네요...
작성한 코드 및 에러 메세지
Microsoft Windows [Version 10.0.19044.2846] (c) Microsoft Corporation. All rights reserved.
C:\Users\MASTER>flutter doctor --android-licenses [=======================================] 100% Computing updates... All SDK package licenses accepted.
C:\Users\MASTER>flutter doctor Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.7.11, on Microsoft Windows [Version 10.0.19044.2846], locale ko-KR)
[X] Windows Version (Unable to confirm if installed Windows version is 10 or greater)
매뉴얼에는 없는 내용이 있음
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2) [√] Chrome - develop for the web [X] Visual Studio - develop for Windows X Visual Studio not installed; this is necessary for Windows development. Download at https://visualstudio.microsoft.com/downloads/. Please install the "Desktop development with C++" workload, including all of its default components [√] Android Studio (version 2022.2) [√] VS Code (version 1.77.3) [√] Connected device (3 available) [√] HTTP Host Availability
! Doctor found issues in 2 categories.
C:\Users\MASTER>
C:\Users\MASTER>flutter doctor --android-licenses [=======================================] 100% Computing updates... All SDK package licenses accepted.
C:\Users\MASTER>
문제는 없다고 나오는데…
Launching lib\main.dart on Windows in debug mode... main.dart:1 Exception: Unable to find suitable Visual Studio toolchain. Please run flutter doctor for more details. Exited (sigterm) 이렇게 문구가 뜨면서 에뮬레이터가 실행이 안됩니다… 어디서 잘못이 된것인지… 에뮬레이터가 뜨지 않아서 더이상 수업이 진행이 안되네요…ㅠ.ㅠ
<참고 main.dart 코드입니다>
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
appBar: AppBar(),
),
);
}
}
