인프런 커뮤니티 질문&답변
작성자 없음
작성자 정보가 삭제된 글입니다.
flutter doctor
작성
·
17
·
수정됨
0
[!] Flutter (Channel stable, 3.24.5, on Microsoft Windows [Version 10.0.19045.6466], locale ko-KR)
• Flutter version 3.24.5 on channel stable at C:\flutter
! The flutter binary is not on your path. Consider adding C:\flutter\bin to your path.
! The dart binary is not on your path. Consider adding C:\flutter\bin to your path.
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision dec2ee5c1f (1 year, 3 months ago), 2024-11-13 11:13:06 -0800
• Engine revision a18df97ca5
• Dart version 3.5.4
• DevTools version 2.37.3
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
[√] Windows Version (Installed version of Windows is version 10 or higher)
[X] Android toolchain - develop for Android devices
X Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/to/windows-android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
`flutter config --android-sdk` to update to that location.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Community 2019 16.11.2)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
• Visual Studio Community 2019 version 16.11.31624.102
• Windows 10 SDK version 10.0.19041.0
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/to/windows-android-setup for detailed instructions).
[√] VS Code (version 1.108.2)
• VS Code at C:\Users\user\AppData\Local\Programs\Microsoft VS Code
• Flutter extension can be installed from:
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.6466]
• Chrome (web) • chrome • web-javascript • Google Chrome 144.0.7559.133
• Edge (web) • edge • web-javascript • Microsoft Edge 144.0.3719.115
[√] Network resources
• All expected network resources are available.
! Doctor found issues in 3 categories.
exit code 0
여기서 Android toolchain 부분 [x] 부분인데 이거 필수로 설치 해야 되는 부분이죠?
답변 1
0
안녕하세요, 인프런 AI 인턴입니다. 오일중님.
Flutter 개발환경에서 flutter doctor 명령어를 통해 확인한 결과, 몇 가지 설정이 부족한 부분이 표시되고 있습니다. 특히 Android 관련 설정에서 중요한 사항들이 누락된 상태입니다. 아래는 현재 문제를 해결하기 위한 방법을 간단히 요약한 것입니다:
Android Toolchain 설정
Android SDK 설치: 현재 Android SDK가 설치되어 있지 않다는 메시지가 나타나고 있습니다. Android 앱 개발을 위해서는 반드시 Android SDK가 필요합니다. Android Studio를 다운로드하여 설치한 후, 처음 실행 시 안내에 따라 Android SDK를 설치해 주세요.
환경 변수 설정: Flutter와 Dart의 실행 파일을 쉽게 실행하기 위해
C:\flutter\bin경로를 시스템 환경 변수PATH에 추가하여야 합니다. Windows에서 환경 변수를 설정하는 방법은 다음과 같습니다:내 PC또는파일 탐색기에서 우클릭 ->속성선택.
고급 시스템 설정->환경 변수버튼 클릭.
- 시스템 변수(SYSTEM VARIABLES) 하단의
Path를 선택하고편집을 클릭.
- 새로 추가 버튼을 클릭하고
C:\flutter\bin경로를 입력.
- 동일한 방식으로 Android SDK 경로도 추가해야 합니다. 보통
C:\Users\<사용자 이름>\AppData\Local\Android\Sdk경로입니다.
추가적으로 확인할 사항
- Android Studio 설치 여부: 명확히 설치되어 있지 않다는 경고도 존재합니다. 따라서 Android Studio를 설치한 후 Flutter 플러그인을 추가 설치하여 개발환경을 완전히 구성해보세요. 설치 후
flutter doctor를 다시 실행해 설정이 올바른지 확인하는 것이 좋습니다.
이 과정을 통해 Flutter로 Android 디바이스에서 개발/testing하기 위한 환경 구성을 완료할 수 있습니다. 이러한 설정이 완료되고 나면, Android 에뮬레이터나 실제 기기에서 Flutter 애플리케이션을 빌드하고 실행할 수 있습니다.
저는 질문자님의 이해를 돕고자 지식공유자님의 기존 답변을 참고하여 유사한 답변 링크를 추천해드리고 있습니다. 현재 베타 기능으로 답변이 만족스럽지 않을 수 있는 점 양해 부탁드립니다. 🙏 추가적으로 궁금한 점이 있으시면, 이어서 질문해 주세요. 곧 지식공유자께서 답변해 주실 것입니다.





해결했습니다 !