سلام
میخوام فلاتر رو روی vscode راه بندازم همه مشکلات هم به جز اینا رفع شده
$ flutter doctor -v
[✓] Flutter (Channel master, 2.11.0-0.0.pre.560, on Ubuntu 20.04.3 LTS
5.13.0-28-generic, locale en_US.UTF-8)
• Flutter version 2.11.0-0.0.pre.560 at /home/mamadism/Downloads/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 6985b78ac9 (8 hours ago), 2022-02-15 07:10:12 -0500
• Engine revision e683e0cd3b
• Dart version 2.17.0 (build 2.17.0-105.0.dev)
• DevTools version 2.10.0
[✗] Android toolchain - develop for Android devices
• Android SDK at /home/mamadism/Android/Sdk
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Android Studio (version 2021.1)
• Android Studio at /snap/android-studio/119/android-studio
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
[!] Android Studio
• Android Studio at /home/mamadism/snap/android-studio/
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
✗ android-studio-dir = /home/mamadism/snap/android-studio/
✗ Unable to find bundled Java version.
• Try updating or re-installing Android Studio.
• Consider removing your android-studio-dir setting by running:
flutter config --android-studio-dir=
[✓] VS Code
• VS Code at /snap/code/current
• Flutter extension version 3.34.0
[✓] Connected device (1 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 98.0.4758.102
[✓] HTTP Host Availability
• All required HTTP hosts are available
! Doctor found issues in 2 categories.
و مشکل از اینجا بوده که من حواسم نبوده و مسیر نصب اندروید استودیو رو با
flutter config --android-studio-dir path/to/
عوض کردم که خب دیگ نتونستم درستش کنم
الان این ارور ها رو چطور رفع کنم ؟
فلاتر رو از خود سایتش گرفتم اما اندروید استودیو رو از اسنپ نصب کردم