The flutter tool cannot access the file or directory. Unable to grant read/write permissions for the current user

Viewed 70

This is the first time I am installing flutter on the mac. I have followed all the steps that are told in flutter.dev. After setting up the path in .zshrc, I get this strange 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.

This is the .zshrc file looks like.

enter image description here

After running flutter doctor getting this.

enter image description here

Thanks in advance.

1 Answers

I'm not sure about this but try it. go to the folder where you installed Flutter, click the folder with to fingers which will show options. got to {Get info} look down at the Sharing & Permission, make sure your current user has read and write. enter image description here I just hope this will fix your problem

Related