Flutter 설치 및 세팅

박선규's avatar
Apr 08, 2024
Flutter 설치 및 세팅
 
notion image
구글에서 flutter를 검색한 뒤 install Flutter를 클릭한다.
 
notion image
해당하는걸 클릭
 
notion image
Desktop 클릭
 
notion image
위 zip파일 버튼을 눌러서 다운로드
 
./flutter --version
위 명령어는 환경변수를 설정하지 않았을 때, bin폴더의 경로 내에서 사용한다. 만약 환경변수가 설정되어있다면 ./를 빼고 flutter —version을 사용하면 된다.
cmd
cmd
git bash
git bash
 

AndroidStuido

🔩
Android Studio 설치
 
notion image
윈도우는 .\가 현재 경로를 의미한다.
 
 
flutter 다운 만든 폴더에 압축 풀고 환경변수 설정하기!
 
 
notion image
 
notion image
클래스가 필요없다
 
 

플러터 환경 변수 설정

notion image
플러터 환경 변수 설정
 
 
notion image
찾아보기 에서 내가 저장한 위치를찾아서 더블클리 해서 경로를 잡아주는 방법도 있고
 
환경변수 잡고나서 확인하는 방법
notion image
이렇게
 

안드로이드 스튜디오

notion image
 
new FLUTTER PROJECT
notion image
 
 

플러터 SDK 잡는 법

플러터 다운 받은 폴더의 경로를 넣는다..
notion image
 
notion image

플러터 sdk가 필요한 이유

자바 환경변수 설정 할때
SDK PATH(설정) :개발 할 수있는 파일들이 모여있는 폴더 설정
 
RESTAPI 방식:
SDK 방식:외부 API 쓰고 싶을 때 URL을 넣으면 JSON을 준다.
 
 
notion image
notion image
notion image
notion image
필수로 설치 돼야 될 것 들
 
notion image

설정

notion image
notion image
notion image
flutter doctor --android-licenses
엔터랑 y를 사용하여 라이센스를 동의해주자.
notion image
📌
만약 위 메뉴가 disabled된 것처럼 막혀있다면 sdk가 잘 설치되어있는지, 환경변수가 잘 잡혀있는지… 확인해보자
 

tools-device manager

notion image
notion image
 
 

다트 SDK 잡는법

다트 플러그인 다운받고 들어가서 내 플러터 다운받아져있는 경로로잡
다트 플러그인 다운받고 들어가서 내 플러터 다운받아져있는 경로로잡
 
 

자동정렬

notion image
 
 
 
Share article

p4rksk