Skip to content

[tool_crash] ProcessException: Failed to find "/Users/xiajun/flutter/bin/cache/dart-sdk/bin/dartaotruntime" in the search path. Command: /Users/xiajun/flutter/bin/cache/dart-sdk/bin/dartaotruntime, OS error code: 0 #178608

Closed

Description

@JunHxW

Command

flutter --no-color run --machine --track-widget-creation --device-id=emulator-5554 --start-paused --dart-define=flutter.inspector.structuredErrors=true --devtools-server-address=http://127.0.0.1:9100 lib/main.dart

Steps to Reproduce

  1. ...
  2. ...
  3. ...

Logs

ProcessException: Failed to find "/Users/xiajun/flutter/bin/cache/dart-sdk/bin/dartaotruntime" in the search path. Command: /Users/xiajun/flutter/bin/cache/dart-sdk/bin/dartaotruntime, OS error code: 0

#0      LocalProcessManager.start (package:process/src/interface/local_process_manager.dart:56:7)
#1      ErrorHandlingProcessManager.start.<anonymous closure> (package:flutter_tools/src/base/error_handling_io.dart:654:26)
#2      _run (package:flutter_tools/src/base/error_handling_io.dart:514:20)
#3      ErrorHandlingProcessManager.start (package:flutter_tools/src/base/error_handling_io.dart:652:12)
#4      DefaultResidentCompiler._compile (package:flutter_tools/src/compile.dart:889:37)
#5      DefaultResidentCompiler._recompile (package:flutter_tools/src/compile.dart:762:14)
#6      _RecompileRequest._run (package:flutter_tools/src/compile.dart:427:84)
#7      _CompilationRequest.run (package:flutter_tools/src/compile.dart:400:30)
#8      DefaultResidentCompiler._handleCompilationRequest (package:flutter_tools/src/compile.dart:813:23)
#9      _rootRunUnary (dart:async/zone.dart:1538:47)
#10     _CustomZone.runUnary (dart:async/zone.dart:1429:19)
#11     _CustomZone.runUnaryGuarded (dart:async/zone.dart:1329:7)
#12     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:381:11)
#13     _DelayedData.perform (dart:async/stream_impl.dart:573:14)
#14     _PendingEvents.handleNext (dart:async/stream_impl.dart:678:11)
#15     _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:649:7)
#16     _rootRun (dart:async/zone.dart:1517:47)
#17     _CustomZone.run (dart:async/zone.dart:1422:19)
#18     _CustomZone.runGuarded (dart:async/zone.dart:1321:7)
#19     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1362:23)
#20     _rootRun (dart:async/zone.dart:1525:13)
#21     _CustomZone.run (dart:async/zone.dart:1422:19)
#22     _CustomZone.runGuarded (dart:async/zone.dart:1321:7)
#23     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1362:23)
#24     _microtaskLoop (dart:async/schedule_microtask.dart:40:35)
[!] Flutter (Channel stable, 3.38.1, on macOS 15.7.2 24G325 darwin-arm64, locale zh-Hans-CN) [73ms]
    • Flutter version 3.38.1 on channel stable at /Users/xiajun/flutter
    ! The flutter binary is not on your path. Consider adding /Users/xiajun/flutter/bin to your path.
    ! The dart binary is not on your path. Consider adding /Users/xiajun/flutter/bin to your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b45fa18946 (3 days ago), 2025-11-12 22:09:06 -0600
    • Engine revision b5990e5ccc
    • Dart version 3.10.0
    • DevTools version 2.51.1
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, omit-legacy-version-file, enable-lldb-debugging
    • 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 36.1.0) [654ms]
    • Android SDK at /Users/xiajun/Library/Android/sdk
    • Emulator version 36.2.12.0 (build_id 14214601) (CL:N/A)
    • Platform android-36.1, build-tools 36.1.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.8+-14196175-b1038.72)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 26.1.1) [143ms]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 17B100
    ✗ CocoaPods not installed.
        CocoaPods is a package manager for iOS or macOS platform code.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/to/platform-plugins
      For installation instructions, see https://guides.cocoapods.org/using/getting-started.html#installation

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

[✓] Connected device (3 available) [5.6s]
    • sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64  • Android 16 (API 36) (emulator)
    • macOS (desktop)             • macos         • darwin-arm64   • macOS 15.7.2 24G325 darwin-arm64
    • Chrome (web)                • chrome        • web-javascript • Google Chrome 142.0.7444.162
    ! Error: Browsing on the local area network for Jun的iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources [1,332ms]
    • All expected network resources are available.

! Doctor found issues in 2 categories.

Flutter Application Metadata

Type: app
Version: 1.0.0+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: b45fa18

Activity

  1. added
    in triage
    on Nov 17, 2025
  2. darshankawar commented on Nov 17, 2025

    @darshankawar
    Member

    @JunHxW Do you have any anti-virus or firewall that could be prohibiting Flutter tool to access the said file ?
    Or it also could be that the tool is unable to find the said file, as it is not searchable or part of your environment variable path ? Try to add below properly and then run your scenario to check if it still throws the error or not.

    
    The flutter binary is not on your path. Consider adding /Users/xiajun/flutter/bin to your path.
        ! The dart binary is not on your path. Consider adding /Users/xiajun/flutter/bin to your path.
    
  3. added
    waiting for response
    on Nov 17, 2025
  4. github-actions commented on Dec 8, 2025

    @github-actions

    Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now.
    If you find this problem please file a new issue with the same description, what happens, logs and the output of 'flutter doctor -v'. All system setups can be slightly different so it's always better to open new issues and reference the related ones.
    Thanks for your contribution.

  5. github-actions commented on Dec 22, 2025

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  6. locked as resolved and limited conversation to collaborators on Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in triagewaiting for response

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions