Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

flutter doctor Unable to determine Android Studio version

enter image description here

I installed Flutter on Linux Mint. Also, I installed Android Studio, but when I run flutter doctor -v in the CLI, it gives me the error:

type here[!] Android Studio (version unknown)
    • Android Studio at /opt/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
    ✗ Unable to determine Android Studio version.
    • Java version OpenJDK Runtime Environment (build
      17.0.6+0-17.0.6b802.4-9586694)
flutter --version
Flutter 3.13.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision ff5b5b5fa6 (7 weeks ago) • 2023-08-24 08:12:28 -0500
Engine • revision b20183e040
Tools • Dart 3.1.0 • DevTools 2.25.0


Dart SDK version: 3.1.0 (stable) (Tue Aug 15 21:33:36 2023 +0000) on "linux_x64"
like image 685
Zoubir Remmache Avatar asked Feb 04 '26 06:02

Zoubir Remmache


1 Answers

I had the same problem.

As you can see flutter doctor -v is finding two copies of android studio.

The first one it has a version number so all is good. The second one is in the opt/ directory which is actually just containg a link to android studio. Your just going to want to delete this link.

You can do this by cd ../../opt and then your in the opt directory.

Now run sudo rm -r android-studio to remove the link

Then cd ../home/yourusername to navigate back

Then flutter doctor -v and you should have no issues

like image 168
Matt Pidden Avatar answered Feb 06 '26 02:02

Matt Pidden



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!