$ sudo apt install default-jdk
JetBrains Toolbox
설치- 이전 영상에 해당 설치 방법을 소개
Android Studio
설치 > 관련 SDK 설치(API v34)SDK Tools
> Android SDk command-line Tools 설치Virtual Device Configuration
> 에뮬레이터 설치(API v34)- 간단하게 App 하나 만들어서 실행 확인
-
Flutter SDK 설치
- snap 명령어
$ sudo snap install flutter --classic
- App Center를 이용
flutter
검색 후 설치
-
flutter doctor를 사용해서 환경 구성 확인
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.1, on Ubuntu 24.04 LTS 6.8.0-31-generic, locale en_US.UTF-8)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2023.3)
[✓] VS Code (version 1.89.1)
[✓] Connected device (2 available)
[✓] Network resources
! Doctor found issues in 1 category.
$ flutter doctor --android-licenses
- 라이센스 동의에 'Y'
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.1, on Ubuntu 24.04 LTS 6.8.0-31-generic, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2023.3)
[✓] VS Code (version 1.89.1)
[✓] Connected device (2 available)
[✓] Network resources
• No issues found!
- VS 확장 > Flutter 검색 > 설치
- Command Palette > flutter: New Project
- Command Palette > flutter: Select Device
- Android, Linux, macOS, iOS 등을 선택해서 실행 확인
adb
를 터미널에서 사용할 수 있도록, 관련 경로를 PATH에 추가해주세요.
$ vi .zshrc
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/platform-tools
$ source .zshrc
$ adb --version
Android Debug Bridge version 1.0.41
Version 35.0.1-11580240
Installed as /home/sd/Android/Sdk/platform-tools/adb
Running on Linux 6.8.0-31-generic (x86_64)
- udev에 등록하기 위해서 사용하는 기기의 고유값(id)를 확인하세요
$ lsusb
...
Bus 003 Device 011: ID 18d1:4ee7 Google Inc. Nexus/Pixel Device (charging + debug)
...
- 편집기를 사용해서 udev의 rule을 추가하세요.
$ sudo vi /etc/51-android.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee7", MODE="0666", GROUP="plugdev"
$ sudo udevadm control --reload-rules
- 기기를 다시 연결하시고, 확인하세요.
$ adb devices
List of devices attached
HVA0X8X0 device