You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[tool_crash] FileSystemException: Creation failed, OS Error: A file cannot be created if it already exists., errno = 183 #90028
changed the title [-][tool_crash] FileSystemException: Creation failed, OS Error: Eine Datei kann nicht erstellt werden, wenn sie bereits vorhanden ist., errno = 183[/-][+][tool_crash] FileSystemException: Creation failed, OS Error: A file cannot be created if it already exists., errno = 183[/+]on Sep 14, 2021
Update: after playing around with the Visual Studio packages, the dependencies were finally cleared up (thank you!), but now I'm back to the previous error (just some of the details have changed):
I have tried deleting the 'flutter\bin\cache\flutter_web_sdk\flutter_web_sdk' folder (the last one in the hierarchy), and get various error messages.
Repeating the "run" without any deletions just got me this:
Flutter failed to check for directory existence at "H:\flutter\bin\cache\flutter_web_sdk". The flutter tool cannot access the file or directory.
Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user flutter_06.log flutter_05.log
It looks like each error refers to a different file that supposedly already exists; I will try running this over and over again; maybe it will eventually run out of existing files it will try to create.
Leaving information from duplicate issue #131978 on new Flutter version for better tracking (the stack trace from OP is on a file, so it's not convenient to quickly capture information)
On stable/3.10.6 with command: flutter build windows
Redirecting this back to the tool team. One comment indicates this problem can happen when downloading artifacts (link), another comment indicates this problem can happen when using Android Studio (here), which is rarely used to build Windows app. I suspect this problem affects all Flutter targets if the host machine is on Windows.
For folks hitting this issue, please upvote 👍 the issue itself. This will help us prioritize. Thanks!
I had a variant of this error occur in Windows VS Code due to a downloaded asset file that was marked as Read Only by Windows. This meant it was able to be copied to the build once, but flutter subsequently was not able to delete and replace it when rebuilding. Unchecking the Read Only property on any problem files in Windows Explorer fixed my issue.
Target debug_android_application failed: PathExistsException: Cannot copy file to 'C:build/dir/path.ext', path = 'C:\path\to\problem\asset.ext' (OS Error: Cannot create a file when that file already exists.
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.
Activity
[-][tool_crash] FileSystemException: Creation failed, OS Error: Eine Datei kann nicht erstellt werden, wenn sie bereits vorhanden ist., errno = 183[/-][+][tool_crash] FileSystemException: Creation failed, OS Error: A file cannot be created if it already exists., errno = 183[/+]darshankawar commentedon Sep 14, 2021
A similar / related issue is: #74227
jimbo-jones1313 commentedon Sep 17, 2021
Update: after playing around with the Visual Studio packages, the dependencies were finally cleared up (thank you!), but now I'm back to the previous error (just some of the details have changed):
I have tried deleting the 'flutter\bin\cache\flutter_web_sdk\flutter_web_sdk' folder (the last one in the hierarchy), and get various error messages.
Repeating the "run" without any deletions just got me this:
It looks like each error refers to a different file that supposedly already exists; I will try running this over and over again; maybe it will eventually run out of existing files it will try to create.
DavidOrakpo commentedon May 18, 2023
huycozy commentedon Aug 7, 2023
Leaving information from duplicate issue #131978 on new Flutter version for better tracking (the stack trace from OP is on a file, so it's not convenient to quickly capture information)
On stable/3.10.6 with command:
flutter build windowsmilindgoel15 commentedon Oct 14, 2023
Any temporary workaround for this issue?
robinmonsere commentedon Feb 12, 2024
Any updates on this? Getting the same exact error with
flutter run -d windows -v20 remaining items
loic-sharma commentedon Jul 29, 2025
Redirecting this back to the tool team. One comment indicates this problem can happen when downloading artifacts (link), another comment indicates this problem can happen when using Android Studio (here), which is rarely used to build Windows app. I suspect this problem affects all Flutter targets if the host machine is on Windows.
For folks hitting this issue, please upvote 👍 the issue itself. This will help us prioritize. Thanks!
anders-au commentedon Aug 24, 2025
I had a variant of this error occur in Windows VS Code due to a downloaded asset file that was marked as Read Only by Windows. This meant it was able to be copied to the build once, but flutter subsequently was not able to delete and replace it when rebuilding. Unchecking the Read Only property on any problem files in Windows Explorer fixed my issue.
Target debug_android_application failed: PathExistsException: Cannot copy file to 'C:build/dir/path.ext', path = 'C:\path\to\problem\asset.ext' (OS Error: Cannot create a file when that file already exists.[flutter_tools] Safely handle broken symlinks and existing files duri…
github-actions commentedon Sep 15, 2026
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.