Flutter Cannot Delete Build Folder When Flutter Clean Is Executed
Solution 1:
If you moved your project folder to another place then just **delete** your "build" folder
and
flutter clean
and
flutter pub get
you will be fine:) Cheers.
Solution 2:
Simply run your cmd as administrator then run the command. As simple as that.
Thank me later.. :)
Solution 3:
If you are using Android Studio then just go to
File->Invalidate Caches / Restart
Solution 4:
The answer is found in the link u were sent to go to which was https://superuser.com/questions/1333118/cant-delete-empty-folder-because-it-is-used
Apparently, you need to download Microsoft's Process Explorer to help you figure out which program is that.
It will let you know which app is handling that folder and you will also be able to kill that handle.
Find -> Find handle -> search for folder's name (will take a while..)
Solution 5:
Try to delete build folder manually. If it shows using a file in the directory error
then identify the process and kill or simply restart machine.
Then run flutter clean
and flutter pub get
Additionally try invalidate cache in IDE.
Post a Comment for "Flutter Cannot Delete Build Folder When Flutter Clean Is Executed"