플러터 개발환경 구축
1. 플러터 sdk설치
압축파일을 아래를 참고해서 푼다
상승된 권한이 필요한 C:\Program Files\와 같은 디렉터리에 Flutter를 설치하지 마십시오.
환경설정 하기 bin파일
💡 C:\DE\flutter\bin
flutter console에서 명령어 입력하기 <아래그림처럼 설치>
2. 안드로이드 스튜디오 설치
Download Android Studio & App Tools - Android Developers
안드로이드 환경변수 설정 : 설정안해도 된다구 함- 환경 변수 | Android 개발자 | Android Developers
- 안드로이드 sdk파일 관리
VS CODE 환경설정
- flutter+DART 확장팩 다운로드
- 명령 팔레트에 flutter doctor 실행 아래와 같이 체크해줌
- 안드로이드 sdk설치
💡 flutter doctor --android-licenses
터미널에 위와같이 치면 y/n을 입력해야하는 여러 동의서가 나오고 동의해주면 허가를 받을 수 있다
[flutter] flutter doctor -v
[√] Flutter (Channel stable, 3.3.6, on Microsoft Windows [Version 10.0.22000.1335], locale ko-KR)
• Flutter version 3.3.6 on channel stable at C:\DE\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 6928314d50 (3 months ago), 2022-10-25 16:34:41 -0400
• Engine revision 3ad69d7be3
• Dart version 2.18.2
• DevTools version 2.15.0
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
• Android SDK at C:\Users\82103\AppData\Local\Android\sdk
• Platform android-33, build-tools 33.0.1
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[!] Visual Studio - develop for Windows (Visual Studio Build Tools 2017 15.9.41)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools
• Visual Studio Build Tools 2017 version 15.9.28307.1745
• Windows 10 SDK version 10.0.17763.0
X Visual Studio 2019 or later is required.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2021.3)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
[√] VS Code (version 1.74.2)
• VS Code at C:\Users\82103\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.56.0
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22000.1335]
• Chrome (web) • chrome • web-javascript • Google Chrome 108.0.5359.125
• Edge (web) • edge • web-javascript • Microsoft Edge 108.0.1462.76
[√] HTTP Host Availability
• All required HTTP hosts are available
! Doctor found issues in 1 categories.
exit code 0
visual studio 설정
까지 다운받아주면
환경설정 끝
자세한 설명은
https://brunch.co.kr/@mystoryg/114