I installed flutter 3.0.5 on two macbooks, both macbooks are intel chip.
On one MacBook flutter is running fine. On the second macbook, I am able to run flutter channel But when I am running flutter doctor, I am getting this 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.
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3
- Changing the channel to beta or master also didn't help
- chown the .config folder didn't help
- chmod the .config folder didn't help
This error happens by either downloading the SDK and extracting it into the desktop or documents or download folder of my user. And also happens if I just install the flutter SDK using brew