Hot reload works as expected on Windows. This issue is specific to hot restart on Windows. Most users do hot reloads thus this issue affects a small number of users.
Doing a hot restart on Windows fails with the message below:
Target copy_flutter_bundle failed: Exception: Flutter failed to copy C:\Users\USER\development\scratch\my_sample_project\.dart_tool\flutter_build\02f4ff5d73af275b6d70fef5f53c5366\app.dill to .monarch\flutter_assets\kernel_blob.bin due to unknown error. 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.
Failed to build bundle.
However, sometimes the first hot restart works. If the first hot restart works, the second one, and subsequent ones, fail.
Hot reload works as expected on Windows. This issue is specific to hot restart on Windows. Most users do hot reloads thus this issue affects a small number of users.
Doing a hot restart on Windows fails with the message below:
However, sometimes the first hot restart works. If the first hot restart works, the second one, and subsequent ones, fail.