flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
169.8k stars 28.37k forks source link

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

Closed roxanluc closed 1 month ago

roxanluc commented 1 month ago

Command

flutter --no-color run --machine --track-widget-creation --device-id=86EFCB06-529C-4342-B536-76ED998E8AC7 --start-paused --dart-define=flutter.inspector.structuredErrors=true lib/main.dart

Steps to Reproduce

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

Logs

ProcessException: Failed to find "/Users/apple/development/flutter/bin/cache/dart-sdk/bin/dartaotruntime" in the search path. Command: /Users/apple/development/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:652:26)
#2      _run (package:flutter_tools/src/base/error_handling_io.dart:512:20)
#3      ErrorHandlingProcessManager.start (package:flutter_tools/src/base/error_handling_io.dart:650:12)
#4      DefaultResidentCompiler._compile (package:flutter_tools/src/compile.dart:871:37)
#5      DefaultResidentCompiler._recompile (package:flutter_tools/src/compile.dart:749:14)
#6      _RecompileRequest._run (package:flutter_tools/src/compile.dart:424:84)
#7      _CompilationRequest.run (package:flutter_tools/src/compile.dart:399:30)
#8      DefaultResidentCompiler._handleCompilationRequest (package:flutter_tools/src/compile.dart:796: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:21)
[✓] Flutter (Channel stable, 3.29.1, on macOS 15.3.1 24D70 darwin-arm64, locale en-US) [940ms]
    • Flutter version 3.29.1 on channel stable at /Users/apple/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 09de023485 (11 days ago), 2025-02-28 13:44:05 -0800
    • Engine revision 871f65ac1b
    • Dart version 3.7.0
    • DevTools version 2.42.2

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1) [1,352ms]
    • Android SDK at /Users/apple/Library/Android/sdk
    • Platform android-35, build-tools 35.0.1
    • 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.5+-12932927-b750.29)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 16.2) [501ms]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16C5032a
    ✗ 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 [4ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.3) [3ms]
    • 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 21.0.5+-12932927-b750.29)

[✓] Connected device (4 available) [11.9s]
    • iPhone 16 Pro Max (mobile)      • 86EFCB06-529C-4342-B536-76ED998E8AC7 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-18-2 (simulator)
    • macOS (desktop)                 • macos                                • darwin-arm64   • macOS 15.3.1 24D70 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad                • darwin         • macOS 15.3.1 24D70 darwin-arm64
    • Chrome (web)                    • chrome                               • web-javascript • Google Chrome 134.0.6998.45

[!] Network resources [25.9s]
    ✗ An HTTP error occurred while checking "https://pub.dev/": Connection closed before full header was received
    ✗ An HTTP error occurred while checking "https://maven.google.com/": Connection closed before full header was received

! 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: 09de023485e95e6d1225c2baa44b8feb85e0d45f

danagbemava-nc commented 1 month ago

This is a known issue which is being tracked in https://github.com/flutter/flutter/issues/143391

Kindly follow up in the original issue for updates

Closing from here as duplicate

Thank you


Please do not file multiple issues for the same bug

Thank you

github-actions[bot] commented 3 weeks ago

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.