I'm facing an issue where flutter doctor detects an old version of Android Studio (4.2) alongside my latest installation (2024.2).
System Details:
OS: Windows 10 Home (22H2)
Flutter Version: 3.29.0 (Stable)
Android Studio Installed:
C:\Program Files\Android\Android Studio (Old - 4.2)
C:\Program Files\Android\Android Studio1 (New - 2024.2)
flutter doctor -v
[√] Flutter (Channel stable, 3.29.0, on Microsoft Windows [Version 10.0.19045.5487], locale en-US) [505ms] • Flutter version 3.29.0 on channel stable at C:\flutter
• Upstream repository: .git
• Framework revision: 35c388afb5 (5 days ago), 2025-02-10 12:48:41 -0800
• Engine revision: f73bfc4522
• Dart version: 3.7.0
• DevTools version: 2.42.2
[√] Windows Version (10 Home 64-bit, 22H2, 2009) [3.2s]
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.1) [2.3s]
• Android SDK at C:\Android\sdk
• Platform: android-35, build-tools 35.0.1
• ANDROID_HOME = C:\Android\sdk
• Java binary at: C:\Program Files\Android\Android Studio1\jbr\bin\java
- This is the JDK bundled with the latest Android Studio installation.
- To manually set the JDK path, use:
flutter config --jdk-dir="path/to/jdk"
• Java version: OpenJDK Runtime Environment (build 21.0.5+-12932927-b750.29)
• All Android licenses accepted.
[√] Chrome - develop for the web [37ms]
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[X] Visual Studio - develop Windows apps [35ms]
X Visual Studio not installed; this is necessary to develop Windows apps.
- Download at: /
- Please install the "Desktop development with C++" workload, including all default components.
[√] Android Studio (version 2024.2) [31ms]
• Android Studio at C:\Program Files\Android\Android Studio1
• Flutter plugin: Install
• Dart plugin: Install
• Java version: OpenJDK Runtime Environment (build 21.0.5+-12932927-b750.29)
[!] Android Studio (version 4.2) [28ms]
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin: Install
• Dart plugin: Install
X Unable to determine bundled Java version.
• Try updating or re-installing Android Studio.
[√] VS Code (version 1.97.2) [28ms]
• VS Code at C:\Users\Adity\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.104.0 [√] Connected device (3 available) [193ms]
• Windows (desktop) • windows • windows-x64
- Microsoft Windows [Version 10.0.19045.5487]
• Chrome (web)
• chrome
• web-javascript - Google Chrome 133.0.6943.98
• Edge (web)
• edge
• web-javascript - Microsoft Edge 133.0.3065.59
[√] Network resources [1,479ms]
• All expected network resources are available.
! Doctor found issues in 2 categories.
What I Have Tried
Set the correct Android Studio path using:
flutter config --android-studio-dir="C:\Program Files\Android\Android Studio1"
Checked Windows Registry (HKEY_LOCAL_MACHINE\SOFTWARE\Android Studio)
The path correctly points to C:\Program Files\Android\Android Studio1.
Restarted my system and re-ran flutter doctor -v, but the old version still appears.
Question:How can I completely remove the old Android Studio reference from flutter doctor? Is there a way to reset Flutter’s detection of Android Studio?