Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Flutter Doctor warns about different paths after upgrading from beta 3.5 to beta 3.6 #115651

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
RoarGronmo opened this issue Nov 18, 2022 · 61 comments · Fixed by #115889
Open
Labels
found in release: 3.6 Found to occur in 3.6 has reproducible steps The issue has been confirmed reproducible and is ready to work on P2 Important issues not at the top of the work list t: flutter doctor Problem related to the "flutter doctor" tool team-tool Owned by Flutter Tool team tool Affects the "flutter" command-line tool. See also t: labels. triaged-tool Triaged by Flutter Tool team

Comments

@RoarGronmo
Copy link

RoarGronmo commented Nov 18, 2022

Edit by @christopherfujino

Please read #115651 (comment) before commenting further.


Following situation (see picture below):
image
Trying to follow suggestions, but this doesn't sort out.

BTW: Application seems to compile & run fine on both android & web. Have not tested iOS yet.

Full flutter doctor -v below:

PS C:\FlutterProjects\mwork> flutter doctor -v 
[!] Flutter (Channel beta, 3.6.0-0.1.pre, on Microsoft Windows [Version 10.0.22621.819], locale nb-NO)
    • Flutter version 3.6.0-0.1.pre on channel beta at c:\Flutter\flutter
    ! Warning: `flutter` on your path resolves to C:\Flutter\flutter\bin\flutter, which is not inside your current Flutter SDK checkout at c:\Flutter\flutter. Consider adding c:\Flutter\flutter\bin to the front of your path.
    ! Warning: `dart` on your path resolves to C:\Flutter\flutter\bin\dart, which is not inside your current Flutter SDK checkout at c:\Flutter\flutter. Consider adding c:\Flutter\flutter\bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 75927305ff (2 days ago), 2022-11-17 05:52:50 +0530
    • Engine revision b754eabc98
    • Dart version 2.19.0 (build 2.19.0-374.1.beta)
    • DevTools version 2.19.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at C:\Users\RoarGronmo\AppData\Local\Android\sdk
    • Platform android-TiramisuPrivacySandbox, build-tools 33.0.0
    • Java binary at: C:\Program Files\Android Studio\Android Studio 2021.3.1.17\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.3)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.31702.278
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android Studio\Android Studio 2020.3.1.26
    • 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.10+0-b96-7249189)

[√] Android Studio (version 2021.1)
    • Android Studio at C:\Program Files\Android Studio\Android Studio 2021.1.1.23
    • 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+9-b60-7590822)

[√] Android Studio (version 2021.2)
    • Android Studio at C:\Program Files\Android Studio\Android Studio 2021.2.1.16
    • 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.12+7-b1504.28-7817840)

[√] Android Studio (version 2021.3)
    • Android Studio at C:\Program Files\Android Studio\Android Studio 2021.3.1.17
    • 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.13+0-b1751.21-8125866)

[√] Android Studio (version 2021.2)
    • Android Studio at C:\Program Files\Android Studio\Android Studio 2021.2.1.11
    • 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.12+7-b1504.28-7817840)

[√] Android Studio (version 2021.3)
    • Android Studio at C:\Program Files\Android Studio\Android Studio 2021.3.1.10
    • 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.13+0-b1751.21-8125866)

[!] Android Studio (version 2022.1)
    • Android Studio at C:\Program Files\Android Studio\Android Studio 2022.1.1.13
    • 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
    X Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[!] Android Studio (version 2022.2)
    • Android Studio at C:\Program Files\Android Studio\Android Studio 2022.2.1.8
    • 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
    X Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[√] Connected device (4 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 13 (API 33) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.22621.819]
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 107.0.5304.107
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 107.0.1418.42

[√] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 3 categories.

Suspects the letter capitalization of drive to be the culprit: 'C:' vs 'c:'

@huycozy huycozy added the in triage Presently being triaged by the triage team label Nov 21, 2022
@huycozy
Copy link
Member

huycozy commented Nov 21, 2022

@RoarGronmo Thanks for filing the issue. This issue is reproducible on the latest beta and master channels.

flutter doctor -v (stable, beta, master)
[✓] Flutter (Channel stable, 3.3.8, on macOS 13.0 22A380 darwin-x64, locale en-VN)
    • Flutter version 3.3.8 on channel stable at /Users/huynq/Documents/GitHub/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 52b3dc25f6 (23 hours ago), 2022-11-09 12:09:26 +0800
    • Engine revision 857bd6b74c
    • Dart version 2.18.4
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-33, build-tools 31.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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.13+0-b1751.21-8125866)

[✓] IntelliJ IDEA Community Edition (version 2022.2.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 70.0.5
    • Dart plugin version 222.4167.21

[✓] IntelliJ IDEA Community Edition (version 2022.1.1)
    • IntelliJ at /Users/huynq/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/221.5591.52/IntelliJ IDEA CE.app
    • 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

[✓] VS Code (version 1.73.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.52.0

[✓] Connected device (3 available)
    • iPhone 14 Pro Max (mobile) • 332079AF-E895-4685-910E-7B1E18B0C6B8 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-0 (simulator)
    • macOS (desktop)            • macos                                • darwin-x64     • macOS 13.0 22A380 darwin-x64
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 107.0.5304.110

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
[!] Flutter (Channel master, 3.6.0-6.0.pre.29, on macOS 13.0 22A380 darwin-x64, locale en-VN)
    • Flutter version 3.6.0-6.0.pre.29 on channel master at /Users/huynq/Documents/GitHub/flutter_master
    ! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ee9bc784b5 (2 hours ago), 2022-11-20 19:32:24 -0500
    • Engine revision 271461837e
    • Dart version 2.19.0 (build 2.19.0-406.0.dev)
    • DevTools version 2.19.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-33, build-tools 31.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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.13+0-b1751.21-8125866)

[✓] IntelliJ IDEA Community Edition (version 2022.2.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 70.0.5
    • Dart plugin version 222.4167.21

[✓] IntelliJ IDEA Community Edition (version 2022.1.1)
    • IntelliJ at /Users/huynq/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/221.5591.52/IntelliJ IDEA CE.app
    • 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

[✓] VS Code (version 1.73.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.52.0

[✓] Connected device (3 available)
    • SM T225 (mobile) • R9JT3004VRJ • android-arm64  • Android 12 (API 31)
    • macOS (desktop)  • macos       • darwin-x64     • macOS 13.0 22A380 darwin-x64
    • Chrome (web)     • chrome      • web-javascript • Google Chrome 107.0.5304.110

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.
[!] Flutter (Channel beta, 3.6.0-0.1.pre, on macOS 13.0 22A380 darwin-x64, locale en-VN)
    • Flutter version 3.6.0-0.1.pre on channel beta at
      /Users/huynq/Documents/GitHub/flutter_beta
    ! Warning: `flutter` on your path resolves to
      /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current
      Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_beta. Consider adding
      /Users/huynq/Documents/GitHub/flutter_beta/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart,
      which is not inside your current Flutter SDK checkout at
      /Users/huynq/Documents/GitHub/flutter_beta. Consider adding
      /Users/huynq/Documents/GitHub/flutter_beta/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 75927305ff (4 days ago), 2022-11-17 05:52:50 +0530
    • Engine revision b754eabc98
    • Dart version 2.19.0 (build 2.19.0-374.1.beta)
    • DevTools version 2.19.0
    • If those were intentional, you can disregard the above warnings; however it is
      recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-33, build-tools 31.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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.13+0-b1751.21-8125866)

[✓] IntelliJ IDEA Community Edition (version 2022.2.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 70.0.5
    • Dart plugin version 222.4167.21

[✓] IntelliJ IDEA Community Edition (version 2022.1.1)
    • IntelliJ at /Users/huynq/Library/Application
      Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/221.5591.52/IntelliJ IDEA CE.app
    • 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

[✓] VS Code (version 1.73.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.52.0

[✓] Connected device (5 available)
    • SM T225 (mobile)           • R9JT3004VRJ                              • android-arm64  • Android 12
      (API 31)
    • iPhone (mobile)            • d9a94afe2b649fef56ba0bfeb052f0f2a7dae95e • ios            • iOS 15.7
      19H12
    • iPhone 14 Pro Max (mobile) • 332079AF-E895-4685-910E-7B1E18B0C6B8     • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-16-0 (simulator)
    • macOS (desktop)            • macos                                    • darwin-x64     • macOS 13.0
      22A380 darwin-x64
    • Chrome (web)               • chrome                                   • web-javascript • Google
      Chrome 107.0.5304.110
    ! Error: iPhone is busy: Fetching debug symbols for iPhone. Xcode will continue when iPhone is
      finished. (code -10)

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

@huycozy huycozy added tool Affects the "flutter" command-line tool. See also t: labels. t: flutter doctor Problem related to the "flutter doctor" tool has reproducible steps The issue has been confirmed reproducible and is ready to work on found in release: 3.6 Found to occur in 3.6 and removed in triage Presently being triaged by the triage team labels Nov 21, 2022
@christopherfujino christopherfujino self-assigned this Nov 22, 2022
@christopherfujino christopherfujino added the P1 High-priority issues at the top of the work list label Nov 22, 2022
@christopherfujino
Copy link
Contributor

@RoarGronmo thanks for filing this, I introduced this bug.

BTW, you can safely ignore these warning, the bug here is that I am case sensitively comparing the strings, which I shouldn't do on Windows.

@christopherfujino
Copy link
Contributor

@RoarGronmo Thanks for filing the issue. This issue is reproducible on the latest beta and master channels.

flutter doctor -v (stable, beta, master)

[✓] Flutter (Channel stable, 3.3.8, on macOS 13.0 22A380 darwin-x64, locale en-VN)
    • Flutter version 3.3.8 on channel stable at /Users/huynq/Documents/GitHub/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 52b3dc25f6 (23 hours ago), 2022-11-09 12:09:26 +0800
    • Engine revision 857bd6b74c
    • Dart version 2.18.4
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-33, build-tools 31.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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.13+0-b1751.21-8125866)

[✓] IntelliJ IDEA Community Edition (version 2022.2.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 70.0.5
    • Dart plugin version 222.4167.21

[✓] IntelliJ IDEA Community Edition (version 2022.1.1)
    • IntelliJ at /Users/huynq/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/221.5591.52/IntelliJ IDEA CE.app
    • 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

[✓] VS Code (version 1.73.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.52.0

[✓] Connected device (3 available)
    • iPhone 14 Pro Max (mobile) • 332079AF-E895-4685-910E-7B1E18B0C6B8 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-0 (simulator)
    • macOS (desktop)            • macos                                • darwin-x64     • macOS 13.0 22A380 darwin-x64
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 107.0.5304.110

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
[!] Flutter (Channel master, 3.6.0-6.0.pre.29, on macOS 13.0 22A380 darwin-x64, locale en-VN)
    • Flutter version 3.6.0-6.0.pre.29 on channel master at /Users/huynq/Documents/GitHub/flutter_master
    ! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ee9bc784b5 (2 hours ago), 2022-11-20 19:32:24 -0500
    • Engine revision 271461837e
    • Dart version 2.19.0 (build 2.19.0-406.0.dev)
    • DevTools version 2.19.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-33, build-tools 31.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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.13+0-b1751.21-8125866)

[✓] IntelliJ IDEA Community Edition (version 2022.2.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 70.0.5
    • Dart plugin version 222.4167.21

[✓] IntelliJ IDEA Community Edition (version 2022.1.1)
    • IntelliJ at /Users/huynq/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/221.5591.52/IntelliJ IDEA CE.app
    • 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

[✓] VS Code (version 1.73.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.52.0

[✓] Connected device (3 available)
    • SM T225 (mobile) • R9JT3004VRJ • android-arm64  • Android 12 (API 31)
    • macOS (desktop)  • macos       • darwin-x64     • macOS 13.0 22A380 darwin-x64
    • Chrome (web)     • chrome      • web-javascript • Google Chrome 107.0.5304.110

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.
[!] Flutter (Channel beta, 3.6.0-0.1.pre, on macOS 13.0 22A380 darwin-x64, locale en-VN)
    • Flutter version 3.6.0-0.1.pre on channel beta at
      /Users/huynq/Documents/GitHub/flutter_beta
    ! Warning: `flutter` on your path resolves to
      /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current
      Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_beta. Consider adding
      /Users/huynq/Documents/GitHub/flutter_beta/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart,
      which is not inside your current Flutter SDK checkout at
      /Users/huynq/Documents/GitHub/flutter_beta. Consider adding
      /Users/huynq/Documents/GitHub/flutter_beta/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 75927305ff (4 days ago), 2022-11-17 05:52:50 +0530
    • Engine revision b754eabc98
    • Dart version 2.19.0 (build 2.19.0-374.1.beta)
    • DevTools version 2.19.0
    • If those were intentional, you can disregard the above warnings; however it is
      recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-33, build-tools 31.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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.13+0-b1751.21-8125866)

[✓] IntelliJ IDEA Community Edition (version 2022.2.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 70.0.5
    • Dart plugin version 222.4167.21

[✓] IntelliJ IDEA Community Edition (version 2022.1.1)
    • IntelliJ at /Users/huynq/Library/Application
      Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/221.5591.52/IntelliJ IDEA CE.app
    • 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

[✓] VS Code (version 1.73.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.52.0

[✓] Connected device (5 available)
    • SM T225 (mobile)           • R9JT3004VRJ                              • android-arm64  • Android 12
      (API 31)
    • iPhone (mobile)            • d9a94afe2b649fef56ba0bfeb052f0f2a7dae95e • ios            • iOS 15.7
      19H12
    • iPhone 14 Pro Max (mobile) • 332079AF-E895-4685-910E-7B1E18B0C6B8     • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-16-0 (simulator)
    • macOS (desktop)            • macos                                    • darwin-x64     • macOS 13.0
      22A380 darwin-x64
    • Chrome (web)               • chrome                                   • web-javascript • Google
      Chrome 107.0.5304.110
    ! Error: iPhone is busy: Fetching debug symbols for iPhone. Xcode will continue when iPhone is
      finished. (code -10)

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

Btw, this is not a reproduction--this is the validator correctly informing you that the Flutter binary that you are invoking is coming from a different version of the repo than the one on your path. This bug is tracking the case where the correct binary is on your path, but the validator thinks they're different paths because the case is different. Windows' file system is case insensitive, whereas on macOS and linux they are case sensitive.

@TheGlorySaint
Copy link

TheGlorySaint commented Jan 5, 2023

@christopherfujino @huycozy
Today, I switched to the latest Flutter master channel from the latest stable channel. After upgrading, I got the warning on my MacBook 16" 2021 M1 Pro, that the 'dart' path resolves to a path, that is not inside my current Flutter SDK Path. I installed Flutter through homebrew. I added the export path below to my .zshrc file, reloaded the terminal and run flutter doctor -v but it didn't fix the issue. I also checked Android Studio for the Dart and Flutter SDK Path, both have the same path as i have posted below. After a search, I only found this post.

My warning I get

flutter doctor -v
[!] Flutter (Channel master, 3.7.0-14.0.pre.46, on macOS 13.1 22C65
    darwin-arm64, locale de-DE)
    • Flutter version 3.7.0-14.0.pre.46 on channel master at
      /opt/homebrew/Caskroom/flutter/3.0.1/flutter
    ! Warning: `dart` on your path resolves to
      /opt/homebrew/Cellar/dart/2.18.6/libexec/bin/dart, which is not inside
      your current Flutter SDK checkout at
      /opt/homebrew/Caskroom/flutter/3.0.1/flutter. Consider adding
      /opt/homebrew/Caskroom/flutter/3.0.1/flutter/bin to the front of your
      path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 36a1caf299 (vor 2 Stunden), 2023-01-05 13:25:43 -0500
    • Engine revision 74861f369a
    • Dart version 3.0.0 (build 3.0.0-85.0.dev)
    • DevTools version 2.20.0
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

added to .zshrc, but didn't fixed

export PATH=$PATH:$HOME/opt/homebrew/Caskroom/flutter/3.0.1/flutter/bin

Dart SDK Path in Android Studio

/opt/homebrew/Caskroom/flutter/3.0.1/flutter/bin/cache/dart-sdk

@Sesa1988
Copy link

This issue is back when you update to the current version :D @christopherfujino

@christopherfujino
Copy link
Contributor

This issue is back when you update to the current version :D @christopherfujino

Which version is the "current version"?

@Sesa1988
Copy link

Sesa1988 commented Jan 24, 2023

This issue is back when you update to the current version :D @christopherfujino

Which version is the "current version"?

The version released today, I think it was 3.7

[!] Flutter (Channel stable, 3.7.0, on macOS 13.0 22A380 darwin-x64, locale en-DE)
! Warning: flutter on your path resolves to /Users/user1/Development/flutter/bin/flutter, which is not inside
your current Flutter SDK checkout at /Users/user1/Development/flutter. Consider adding
/Users/user1/Development/flutter/bin to the front of your path.
! Warning: dart on your path resolves to /Users/user1/Development/flutter/bin/dart, which is not inside your
current Flutter SDK checkout at /Users/user1/Development/flutter. Consider adding
/Users/user1/Development/flutter/bin to the front of your path.
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc3)
[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.74.3)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

@christopherfujino
Copy link
Contributor

This issue is back when you update to the current version :D @christopherfujino

Which version is the "current version"?

The version released today, I think it was 3.7

[!] Flutter (Channel stable, 3.7.0, on macOS 13.0 22A380 darwin-x64, locale en-DE) ! Warning: flutter on your path resolves to /Users/user1/Development/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/user1/Development/flutter. Consider adding /Users/user1/Development/flutter/bin to the front of your path. ! Warning: dart on your path resolves to /Users/user1/Development/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/user1/Development/flutter. Consider adding /Users/user1/Development/flutter/bin to the front of your path. [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc3) [✓] Xcode - develop for iOS and macOS (Xcode 14.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.3) [✓] VS Code (version 1.74.3) [✓] Connected device (2 available) [✓] HTTP Host Availability

Ahh, thanks for this, re-opening

@matiasdilettasolutions
Copy link

Same here

Flutter 3.7.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision b06b8b2 (23 hours ago) • 2023-01-23 16:55:55 -0800
Engine • revision b24591ed32
Tools • Dart 2.19.0 • DevTools 2.20.1

Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel stable, 3.7.0, on macOS 13.1 22C65 darwin-arm64, locale pt-BR)
! Warning: dart on your path resolves to /opt/homebrew/Cellar/dart/2.18.4/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/user1/development/flutter. Consider adding /Users/user1/development/flutter/bin to the front of your path.
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.74.3)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

! Doctor found issues in 1 category.

@christopherfujino
Copy link
Contributor

christopherfujino commented Jan 24, 2023

! Warning: dart on your path resolves to /opt/homebrew/Cellar/dart/2.18.4/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/user1/development/flutter. Consider adding /Users/user1/development/flutter/bin to the front of your path.

@matiasdilettasolutions That is not the same, if you check the paths here the doctor warning is correct.

@matiasdilettasolutions
Copy link

That is not the same, if you check the paths here the doctor warning is correct.
@christopherfujino how can i fix this warning?

@christopherfujino
Copy link
Contributor

Per the doctor message:

Consider adding /Users/user1/development/flutter/bin to the front of your path.

@matiasdilettasolutions
Copy link

Per the doctor message:

@christopherfujino thank you! It's working now.

@loic-hamdi
Copy link

loic-hamdi commented Jan 25, 2023

EDIT Solution:

Type in nano ~/.zshrc:

export PATH="/Users/development/flutter/bin:$PATH"

Also facing the same error message since upgrade to 3.7

Doctor summary (to see all details, run flutter doctor -v):

[!] Flutter (Channel stable, 3.7.0, on macOS 13.1 22C65 darwin-arm64, locale en-US)
    ! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/2.19.0/libexec/bin/dart, which is not inside your current
      Flutter SDK checkout at /Users/development/flutter. Consider adding /Users/development/flutter/bin to the front of your
      path.
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[✓] VS Code (version 1.74.2)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

I already have in nano ~/.zshrc at the very top of the file:

export PATH="$PATH:/Users/development/flutter/bin"

What do they mean by the front of your path ?

@Mosbahswidan
Copy link

i have same proplem in 3.7 version what is the solution

@wa11breaker
Copy link

EDIT Solution:

Type in nano ~/.zshrc:

export PATH="/Users/development/flutter/bin:$PATH"

Also facing the same error message since upgrade to 3.7

Doctor summary (to see all details, run flutter doctor -v):

[!] Flutter (Channel stable, 3.7.0, on macOS 13.1 22C65 darwin-arm64, locale en-US)
    ! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/2.19.0/libexec/bin/dart, which is not inside your current
      Flutter SDK checkout at /Users/development/flutter. Consider adding /Users/development/flutter/bin to the front of your
      path.
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[✓] VS Code (version 1.74.2)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

I already have in nano ~/.zshrc at the very top of the file:

export PATH="$PATH:/Users/development/flutter/bin"

What do they mean by the front of your path ?

I added export PATH="/Users/akshay/development/flutter/bin:$PATH" in .zprofile and sourced it but still its show the same message

Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel stable, 3.7.0, on macOS 13.0.1 22A400 darwin-arm64, locale en-IN)
    ! Warning: `flutter` on your path resolves to /Users/akshay/Development/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/akshay/development/flutter. Consider adding
      /Users/akshay/development/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/akshay/Development/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/akshay/development/flutter. Consider adding
      /Users/akshay/development/flutter/bin to the front of your path.
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[✓] VS Code (version 1.74.3)
[✓] Connected device (2 available)
[✓] HTTP Host Availability```

@christopherfujino
Copy link
Contributor

I already have in nano ~/.zshrc at the very top of the file:

export PATH="$PATH:/Users/development/flutter/bin"

Note that on macOS, Development and development are different paths, so I believe the doctor is correct and your path is incorrect.

@ksroo
Copy link

ksroo commented Jan 26, 2023

[!] Flutter (Channel stable, 3.7.0, on macOS 13.1 22C65 darwin-arm64, locale
en-EG)
! Warning: dart on your path resolves to
/usr/local/Cellar/dart/2.16.1/libexec/bin/dart, which is not inside your
current Flutter SDK checkout at /Users/elm3lam/Documents/flutter. Consider
adding /Users/elm3lam/Documents/flutter/bin to the front of your path.

Please Any help ??

@NasciGN
Copy link

NasciGN commented Jun 2, 2023

I using Windows 11 with FVM. After i installed the stable version (currently 3.10.2) via FVM, the command "flutter doctor" point out these two mistakes.

image

I added the PATH in system environment variables, but nothing looks work.
image

Now I ask myself: Why does flutter search the wrong PATH (which is in the error message of the flutter doctor command) if it is not configured in the system environment variables?

@zeiasoroush
Copy link

I have the same warning. but My problem was about a Capital F when adding to the path.
I fix the issue by changing this
/Users/{username}/DartSDK/Flutter/bin:$PATH
to
/Users/{username}/DartSDK/flutter/bin:$PATH

@christopherfujino
Copy link
Contributor

Now I ask myself: Why does flutter search the wrong PATH (which is in the error message of the flutter doctor command) if it is not configured in the system environment variables?

This is a good question I don't know the answer to. However, your PATH is not exclusively what is set in that dialog, runtime processes can also append to it. If you type the following into powershell, it will tell you what your current PATH variable contains:

PS C:\> $Env:Path

@cotlaswebhost
Copy link

Hi I sloved this issue by adding path in sudo nano $HOME/.zshrc and adding PATH="$PATH:/users/vinayshukla/development/flutter/bin"

And also I exported the path variable using this command

export PATH="$PATH:/users/vinayshukla/development/flutter/bin"

Acctually in my warning message one was path was showing Users and in another it was users, someone said above that in mac it is case sensitive, so i added same path in both and it works, now when i run echo path command, it shows two lines of flutter path back to back, and flutter doctor was resolved without any error.

@Xiaoaomi147
Copy link

in .bash_profile detele ----> eval "$(/opt/homebrew/bin/brew shellenv)".

@atlalbasha
Copy link

atlalbasha commented Jul 3, 2023

Add the following line at the end of the file:
code ~/.zshrc
or
code ~/.bash_profile

export PATH="$HOME/flutter/bin:$PATH"

source ~/.zshrc
source ~/.bash_profile

close the terminal and reopen it


flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.10.5, on macOS 13.4.1 22F82 darwin-arm64
(Rosetta), locale en-SE)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.79.2)
[✓] Connected device (2 available)
[✓] Network resources

• No issues found!

@flutter-triage-bot flutter-triage-bot bot added team-tool Owned by Flutter Tool team triaged-tool Triaged by Flutter Tool team labels Jul 8, 2023
@lucassfernando
Copy link

Any solution for this problem on windows? I'm using windows 10, here the same problem is happening!

@christopherfujino
Copy link
Contributor

Any solution for this problem on windows? I'm using windows 10, here the same problem is happening!

Add the path you installed Flutter to your path, per: https://docs.flutter.dev/get-started/install/windows#update-your-path

@BoltSurfer
Copy link

(For Windows 10) Check there isn't an empty file called flutter where it says the path is resolving to. Even if you've changed the variable Path, it will still resolve to the unwanted spot if that file is in it. After that, restart your console and run flutter doctor again. Good luck!

@danielbarczynski
Copy link

By default chocolatey installed dart-sdk and flutter in the same tools folder for me. I just simply moved the dart-sdk folder outside the tools folder, updated environment variable path for dart; ran flutter doctor again and the warning disappeared.

@BruunoGoncalves
Copy link

BruunoGoncalves commented Aug 25, 2023

(FIX W11) I managed to fix it by putting this path in the Path: C:\Users\your_user\fvm\versions\stable\bin

This for anyone having this problem:

image

@NestorBurma1
Copy link

For Windows 10
My project was in
C:\Users\Oleksii\AndroidStudioProjects\FlutterProjects\monitoring\flutter
image

I just moved FlutterProjects to flutter folder:
C:\Users\Oleksii\flutter\FlutterProjects\monitoring>
image

@DigitalArtis4n
Copy link

Adding this to my Path worked:
export PATH="/Users/schaeffer/flutter/bin:$PATH"

Remember to reload your shell config source ~/.zshrc before you test with flutter doctor

@flutter-triage-bot flutter-triage-bot bot added the Bot is counting down the days until it unassigns the issue label Nov 27, 2023
@flutter-triage-bot
Copy link

This issue is assigned to @christopherfujino but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!

@akhudairy
Copy link

Well yeah this is kind of driving me crazy!

/Users/akhudairy % echo $path
/users/akhudairy/dev/flutter/bin /opt/homebrew/lib/ruby/gems/3.2.0/bin /o.......

/Users/akhudairy % flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel stable, 3.16.2, on macOS 14.3 23D56 darwin-arm64, locale
en-JO)
! Warning: flutter on your path resolves to
/Users/akhudairy/dev/flutter/bin/flutter, which is not inside your current
Flutter SDK checkout at /users/akhudairy/dev/flutter. Consider adding
/users/akhudairy/dev/flutter/bin to the front of your path.
! Warning: dart on your path resolves to
/Users/akhudairy/dev/flutter/bin/dart, which is not inside your current
Flutter SDK checkout at /users/akhudairy/dev/flutter. Consider adding
/users/akhudairy/dev/flutter/bin to the front of your path.

@flutter-triage-bot flutter-triage-bot bot removed the triaged-tool Triaged by Flutter Tool team label Feb 10, 2024
@flutter-triage-bot
Copy link

This issue was assigned to @christopherfujino but has had no status updates in a long time. To remove any ambiguity about whether the issue is being worked on, the assignee was removed.

@flutter-triage-bot flutter-triage-bot bot removed the Bot is counting down the days until it unassigns the issue label Feb 10, 2024
@christopherfujino christopherfujino added the triaged-tool Triaged by Flutter Tool team label Feb 13, 2024
@taikute
Copy link

taikute commented Apr 18, 2024

(Win11)
I check on C:\Users\username
I see a file (not folder) name flutter and i delete it, problem solved!

@kekude
Copy link

kekude commented Jul 24, 2024

(Win11) I check on C:\Users\username I see a file (not folder) name flutter and i delete it, problem solved!

Thank you you this solved my problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
found in release: 3.6 Found to occur in 3.6 has reproducible steps The issue has been confirmed reproducible and is ready to work on P2 Important issues not at the top of the work list t: flutter doctor Problem related to the "flutter doctor" tool team-tool Owned by Flutter Tool team tool Affects the "flutter" command-line tool. See also t: labels. triaged-tool Triaged by Flutter Tool team
Projects
None yet
Development

Successfully merging a pull request may close this issue.