본문 바로가기
모바일앱/Flutter

(Flutter) SDK설치와 환경변수 설정하기 (2)

by GeekCode 2021. 9. 15.
반응형

 

SDK란?

1. SDK(Software Development Kit)의 약자이다.

우리가 앱을 개발할 때, 우리가 만든 코드도 사용하지만 다른 누군가가 제공해준 코드를 사용해야 할 때가 자주 있다.

2. 소스코드의 모음과 유틸리티 

3. 구글이 제공

-> 쉽게말해 앱만들기 키트 라고 생각하자!!!

 

 

 

윈도우 설치는  해당 유튜브 참고

https://www.youtube.com/watch?v=QI5CODSU8cA&list=PLQt_pzi-LLfpcRFhWMywTePfZ2aPapvyl&index=2/ 

https://flutter.dev 

 

각환경에 맞게 인스톨시작하기

2021.9월 현재

 

System requirments

윈도우 

To install and run Flutter, your development environment must meet these minimum requirements:

  • Operating Systems: Windows 7 SP1 or later (64-bit), x86-64 based.
  • Disk Space: 1.64 GB (does not include disk space for IDE/tools).
  • Tools: Flutter depends on these tools being available in your environment.
    • Windows PowerShell 5.0 or newer (this is pre-installed with Windows 10)
    • Git for Windows 2.x, with the Use Git from the Windows Command Prompt option.
    • If Git for Windows is already installed, make sure you can run git commands from the command prompt or PowerShell.

Mac OS

To install and run Flutter, your development environment must meet these minimum requirements:

  • Operating Systems: macOS
  • Disk Space: 2.8 GB (does not include disk space for IDE/tools).
  • Tools: Flutter uses git for installation and upgrade. We recommend installing Xcode, which includes git, but you can also install git separately.

 

SDK설치

Get the Flutter SDK

https://flutter.dev/docs/get-started/install/macos

  1. Download the following installation bundle to get the latest stable release of the Flutter SDK:For other release channels, and older builds, see the SDK releases page.
  2. flutter_macos_2.5.0-stable.zip
  3. Extract the file in the desired location, for example:
cd ~/development
unzip ~/Downloads/flutter_macos_2.5.0-stable.zip

   4. Add the flutter tool to your path:

export PATH="$PATH:`pwd`/flutter/bin"

This command sets your PATH variable for the current terminal window only. To permanently add Flutter to your path, see Update your path. You are now ready to run Flutter commands!

 

 Note: To update an existing version of Flutter, see Upgrading Flutter.

 

Path를 설정하는 이유는 매번 플러터를 할때마다 들어와서 해당 파일들을 열고 경로를 잡기 불편하기 때문에 플러터를 할경우 자동으로 경로를 잡아주기 위해서이다.

 

Run the following command to see if there are any dependencies you need to install to complete the setup (for verbose output, add the -v flag):

터미널을 틀어 커맨드를 입력한다.

fluttter doctor

그러면 플러터를 구동하는데 필요한 요소들을 자동으로 검사한다.

이런식으로 말이다.

[-] Android toolchain - develop for Android devices
    • Android SDK at /Users/obiwan/Library/Android/sdk
    ✗ Android SDK is missing command line tools; download from https://goo.gl/XxQghQ
    • Try re-installing or updating your Android SDK,
      visit https://flutter.dev/setup/#android-setup for detailed instructions.

 

📌 기본적으로 iOS, Android 두 플랫폼 중 하나 이상 설치를 완료해야한다.

플러터에서 공식적으로 한글 매뉴얼을 배포했다. (난 이것도 모르고 맨땅에 헤딩을....)

설치과정은 아래 링크를 참고한다. 

https://flutter-ko.dev/docs/get-started/install/macos

반응형