1. Android Studio 설치
-
설치(exe)버전으로 다운로드 (포터블버전(zip)은 path 등 추가 설정 필요)
-
Android Studio 설치 경로 D:\Android Studio
-
Android SDK 설치 경로 D:\Android_SDK
2. Git 설치
3. VSCode 설치
4. Visual Studio 설치
5. Flutter SDK 설치
- 다운로드 및 설치 (D:\Flutter 폴더)
- https://flutter.dev/docs/get-started/install
-
또는 Git으로 설치
D:\> git clone -b stable https://github.com/flutter/flutter.git
- Path 설정
D:\Flutter\bin
- AVD 경로 변경
- 설치된 경로 확인 (기본 : C:\Users\xxxx\.android\avd )
- avd 내부 에뮬레이터 데이터 폴더를 D:\Android_AVD 로 이동
- *.ini 파일의 경로 수정
D:\Android_AVD\Android12_HD.avd
- Flutter Doctor 실행
명령어 안먹으면 윈도우 로그아웃 - 로그인 필요 (set 명령으로는 잘 안됨)
안드로이드 설치 경로 지정
> flutter config --android-studio-dir="D:\Android Studio" flutter doctor -v
> flutter config --android-sdk="D:\Android_SDK"
> flutter doctor --android-licenses
> flutter doctor
[X] Windows Version (Unable to confirm if installed Windows version is 10 or greater) 에러일 경우
> flutter channel master
> flutter upgrade
6. VSCODE 프로그램 개발
- .dart 편집기 설정 (settings.json)
"editor.rulers": [
150
],
- Android Studio에서 AVD 에뮬레이터를 먼저 실행
- Ctrl + Shift + P


- 브라우저에서 실행할 경우
> flutter run -d chrome --web-port=8080 --web-hostname=xxx.xxx.xxx.xxx
7. GIT 사용
- Git config 리셋 (처음 설치하는 경우 생략해도 됨)
> git config --global --unset credential.helper
- Git 계정 정보 입력
> git config --global user.name "NAME"
- 프로젝트 폴더에 git 설정
# 생성: Create a new repository
github.com/NAME?tab=repositories
# 신규: create a new repository on the command line
> git init
> git add README.md
> git commit -m "first commit"
> git branch -M main
> git remote add origin https://github.com/NAME/flutter_login_dice.git (생성한 git url)
> git push -u origin main
# 기존: push an existing repository from the command line
> git remote add origin https://github.com/NAME/flutter_login_dice.git (생성한 git url)
> git branch -M main