My previous Flutter version is installed in C:\src\flutter.
When I try to upgrade Flutter, I get this error:
Downloading Dart SDK from Flutter engine
Rename-Item : Access to the path 'C:\src\flutter\bin\cache\dart-sdk' is denied.
At C:\src\flutter\bin\internal\update_dart_sdk.ps1:51 char:5
+ Rename-Item $dartSdkPath "$oldDartSdkPrefix$oldDartSdkSuffix"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\src\flutter\bin\cache\dart-sdk:String) [Rename-Item], IOException
+ FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand
I think something is wrong with my drive permission on Windows, but I don't know how to solve it.
The problem is that Windows is unable to rename the dart-sdk folder. For me it was because the folder was locked by some processes. To solve such problem:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With