Repository navigation
Description
Command
flutter pub get
Steps to Reproduce
- ...
- ...
- ...
Logs
FileSystemException: Deletion failed, OS Error: The system cannot find the path specified.
, errno = 3
#0 _Directory._deleteSync (dart:io/directory_impl.dart:201:7)
#1 FileSystemEntity.deleteSync (dart:io/file_system_entity.dart:412:7)
#2 ForwardingFileSystemEntity.deleteSync (package:file/src/forwarding/forwarding_file_system_entity.dart:70:16)
#3 ErrorHandlingDirectory.deleteSync.<anonymous closure> (package:flutter_tools/src/base/error_handling_io.dart:486:22)
#4 _runSync (package:flutter_tools/src/base/error_handling_io.dart:597:14)
#5 ErrorHandlingDirectory.deleteSync (package:flutter_tools/src/base/error_handling_io.dart:485:12)
#6 _createPlatformPluginSymlinks (package:flutter_tools/src/flutter_plugins.dart:1047:22)
#7 createPluginSymlinks (package:flutter_tools/src/flutter_plugins.dart:996:5)
#8 refreshPluginsList (package:flutter_tools/src/flutter_plugins.dart:1087:5)
<asynchronous suspension>
#9 FlutterProject.ensureReadyForPlatformSpecificTooling (package:flutter_tools/src/project.dart:359:5)
<asynchronous suspension>
#10 PackagesGetCommand.runCommand (package:flutter_tools/src/commands/packages.dart:177:5)
<asynchronous suspension>
#11 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1194:27)
<asynchronous suspension>
#12 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#13 CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#14 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
<asynchronous suspension>
#15 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#16 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
[✓] Flutter (Channel master, 3.1.0-0.0.pre.86, on Microsoft Windows [Version 10.0.19043.1165], locale en-US)
• Flutter version 3.1.0-0.0.pre.86 at C:\scr\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision baf6b61c15 (3 months ago), 2022-04-11 03:54:06 -0400
• Engine revision a5466fa0d7
• Dart version 2.18.0 (build 2.18.0-9.0.dev)
• DevTools version 2.12.2
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:\Users\MichaelPitter\AppData\Local\Android\Sdk
• Platform android-32, build-tools 30.0.3
• ANDROID_HOME = C:\Users\MichaelPitter\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.15)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
• Visual Studio Community 2019 version 16.11.32510.428
• Windows 10 SDK version 10.0.19041.0
[✓] Android Studio (version 2021.2)
• Android Studio at C:\Program Files\Android\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
• Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
[✓] VS Code (version 1.68.1)
• VS Code at C:\Users\MichaelPitter\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.42.0
[✓] Connected device (4 available)
• 2201116SG (mobile) • cf685c33c854 • android-arm64 • Android 11 (API 30)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19043.1165]
• Chrome (web) • chrome • web-javascript • Google Chrome 103.0.5060.66
• Edge (web) • edge • web-javascript • Microsoft Edge 103.0.1264.37
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
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: dev
Creation framework version: 25caf14
Plugins
flutter_barcode_scanner-2.0.0
flutter_config-2.0.0
flutter_plugin_android_lifecycle-2.0.6
google_maps_flutter-2.1.7
location-4.4.0
location_web-3.1.1
path_provider_linux-2.1.6
path_provider_windows-2.0.6
shared_preferences-2.0.15
shared_preferences_android-2.0.12
shared_preferences_ios-2.1.1
shared_preferences_linux-2.1.1
shared_preferences_macos-2.0.4
shared_preferences_web-2.0.4
shared_preferences_windows-2.1.1
url_launcher-6.1.3
url_launcher_android-6.0.17
url_launcher_ios-6.0.17
url_launcher_linux-3.0.1
url_launcher_macos-3.0.1
url_launcher_web-2.0.11
url_launcher_windows-3.0.1
webview_flutter-3.0.4
webview_flutter_android-2.8.11
webview_flutter_wkwebview-2.7.5
Activity
darshankawar commentedon Jul 1, 2022
I don't see a similar issue present already, so labeling for further investigation from team.
/cc @christopherfujino
SteplerPaulo commentedon Sep 26, 2022
For Window user run
Delete android/app/build
and then try adding args into .vscode/launch.json file
nirgranth commentedon Dec 20, 2023
flutter pub cache clean
same result
github-actions commentedon Jan 16, 2024
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 -vand a minimal reproduction of the issue.darshankawar commentedon Apr 22, 2024
Reopening this, as this wasn't solved and we are getting similar tool crash on 3.19.x version.
See : #147149
christopherfujino commentedon Apr 22, 2024
Here's a recent stacktrace, originally from #147149
Command
Logs
FileSystemException: Deletion failed, OS Error: The system cannot find the path specified.
, errno = 3
Flutter Application Metadata
Type: malformed
Version: 1.0.0+3
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: null
Creation framework version: null
Plugins
file_selector_linux-0.9.2+1
file_selector_macos-0.9.3+3
file_selector_windows-0.9.3+1
firebase_core-2.30.0
firebase_core_web-2.15.0
firebase_messaging-14.8.2
firebase_messaging_web-3.8.2
flutter_local_notifications-9.9.1
flutter_plugin_android_lifecycle-2.0.19
fluttertoast-8.2.5
google_maps_flutter-2.6.1
google_maps_flutter_android-2.7.0
google_maps_flutter_ios-2.6.0
google_maps_flutter_web-0.5.6+2
image_gallery_saver-1.7.1
image_picker-0.8.9
image_picker_android-0.8.10
image_picker_for_web-2.2.0
image_picker_ios-0.8.10
image_picker_linux-0.2.1+1
image_picker_macos-0.2.1+1
image_picker_windows-0.2.1+1
open_file-3.3.2
path_provider-2.1.3
path_provider_android-2.2.4
path_provider_foundation-2.3.2
path_provider_linux-2.2.1
path_provider_windows-2.2.1
permission_handler-11.3.1
permission_handler_android-12.0.5
permission_handler_apple-9.4.4
permission_handler_html-0.1.1
permission_handler_windows-0.2.1
printing-5.12.0
sqflite-2.3.3
webview_flutter-4.7.0
webview_flutter_android-3.16.0
webview_flutter_wkwebview-3.13.0
github-actions commentedon Jul 28, 2025
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 -vand a minimal reproduction of the issue.