memostack
article thumbnail
블로그를 이전하였습니다. 2023년 11월부터 https://bluemiv.tistory.com/에서 블로그를 운영하려고 합니다. 앞으로 해당 블로그의 댓글은 읽지 못할 수 도 있으니 양해바랍니다.
반응형

Android Studio 설치

하위 페이지에서 Android Studio 설치

developer.android.com/studio?hl=ko

 

Download Android Studio and SDK tools  |  Android 스튜디오

developer.android.com

 

Flutter SDK 설치

하위 페이지에서 자신의 운영체제에 맞게 설치

flutter.dev/docs/get-started/install

 

Install

Install Flutter and get started. Downloads available for Windows, macOS, Linux, and Chrome OS operating systems.

flutter.dev

Flutter SDK 설치

 

# 원하는 위치에 압축을 푸세요. (저는 ~/dev 쪽에 풀겁니다)
$ cd ~/dev
$ unzip ~/Downloads/flutter_macos_1.22.5-stable.zip

 

환경 변수에 추가한다.

$ cd ~
$ vi .zprofile
...
# Flutter
export PATH=$PATH:~/dev/flutter/bin
$ source .zprofile

 

설치 확인

$ flutter --version
Flutter 1.22.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 7891006299 (12 days ago) • 2020-12-10 11:54:40 -0800
Engine • revision ae90085a84
Tools • Dart 2.10.4

 

Flutter Doctor 실행

Flutter Doctor는 마치 의사와 같이 Flutter 동작을 위해  필요한 의존성이 있는지 확인해준다.

$ flutter doctor
[✓] Flutter (Channel stable, 1.22.5, on Mac OS X 10.15.7 19H2 darwin-x64, locale ko-KR)
 
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    ✗ Xcode requires additional components to be installed in order to run.
      Launch Xcode and install additional required components when prompted or run:
        sudo xcodebuild -runFirstLaunch
[!] Android Studio (version 4.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[!] IntelliJ IDEA Ultimate Edition (version 2020.3)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[!] VS Code (version 1.52.0)
    ✗ Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[!] Connected device
    ! No devices available

! Doctor found issues in 6 categories.

문제 해결 과정은 아래 펼쳐서 확인

더보기

본 글에서는 아래와 같이 위 의존성 문제를 해결했다.

# 라이센스 확인
$ flutter doctor --android-licenses

# Android가 설치되어있고, 플러그인도 설치되어있으나 찾지 못하는것 같아,
# 링크 연결
$ ln -s ~/Library/Application\ Support/Google/AndroidStudio4.1/plugins ~/Library/Application\ Support/AndroidStudio4.1
$ ls -al ~/Library/Application\ Support/AndroidStudio4.1
lrwxr-xr-x   1 hong  staff    71 12 23 16:09 AndroidStudio4.1 -> /Users/hong/Library/Application Support/Google/AndroidStudio4.1/plugins

Android Studio 로 개발할거라서 나머지 intellij와 vscode는 넘어갔다.

그리고, Connected device는 휴대폰과 연결이 안됐다고 알려주는 것이기 때문에 일단 넘어갔다.

반응형
블로그를 이전하였습니다. 2023년 11월부터 https://bluemiv.tistory.com/에서 블로그를 운영하려고 합니다. 앞으로 해당 블로그의 댓글은 읽지 못할 수 도 있으니 양해바랍니다.
profile

memostack

@bluemiv_mm

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!