본문 바로가기

Frontend/Flutter

[Flutter] Linux mint 'flutter doctor' Android Studio issues 해결 방법

환경

Operating System : Linux Mint 20.2
Kernel : Linux 5.11.0-38-generic
Architecture : x86-64

Dart : Dart SDK version: 2.14.4 (stable) (Wed Oct 13 11:11:32 2021 +0200) on "linux_x64"

Flutter : Flutter 2.5.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 18116933e7 (3주 전) • 2021-10-15 10:46:35 -0700
Engine • revision d3ea636dc5

에러

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).

또는

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.5.3, on Linux Mint 20.2 5.11.0-38-generic, locale ko_KR.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[!] Android Studio
    ✗ android-studio-dir = /snap/android-studio-canary
    ✗ Unable to find bundled Java version.
[✓] VS Code (version 1.62.0)
[✓] Connected device (1 available)

! Doctor found issues in 1 category.

해결방법

// android-studio 인 경우
$ flutter config --android-studio-dir=/snap/android-studio/current/android-studio

또는

// android-studio-canary 인 경우
$ flutter config --android-studio-dir=/snap/android-studio-canary/current/android-studio

참고

https://github.com/flutter/flutter/issues/71210#issuecomment-733526109

 

Flutter doctor -v : can not found Vs code installed through snap on ubuntu 20.04 · Issue #71210 · flutter/flutter

Flutter is running on Ubuntu 20.04 🤖 android-studio was installed with snap : https://snapcraft.io/android-studio 🐊 code : https://snapcraft.io/code Problem When i execute flutter doctor -v : [!] A...

github.com