skip to Main Content

Thanks you for your time. I really try to complete de configuration of my flutter app for upload to the playstore , but i have this problem when i try execute "flutter clean" like a step in the guide (https://docs.flutter.dev/deployment/android#create-an-upload-keystore):

"Flutter failed to delete a directory at "build". 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."

I have tried deleting android studio folders and I have not been successful.

I have tried : Windows Security ->Virus & threat protection ->Manage settings ->Controlled folder access ->Turn off Controlled folder access

Bye 😀

2

Answers


  1. My problem was importing a project from Windows. I compared the imported folder with one that was created on MacOS and the difference was that appeared extended attribute. So my solution was to remove the extended attributes via command line:

    $ sudo xattr -c -r  <project_folder> 
    
    Login or Signup to reply.
  2. On Windows, as a temporary workaround, you can add an exception on your antivirus for the folder in which the Flutter SDK is installed:

    Windows Security > Virus & threat protection > Your antivirus > Add an exception.
    Specify the path to your Flutter SDK, e.g. "C:flutter"

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search