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

[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

from http://gubonny.tistory.com/168 by ccl(A) rewrite - 2021-11-07 12:02:26