Flutter outside project Exception: null. The flutter tool cannot access the file or directory

0

I’m sorry for my bad english. My problem flutter outside project not run build. Error = Exception: null. 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.

project have all permission “android flutter sdk”

but again error for build

What is problem?

1 Like

same issue here. I am on mac platform.

Running Gradle task ‘assembleRelease’… 176.1s
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.

Are you getting the correct Flutter path when running “which flutter”?

Follow the steps here to permanently add flutter in your path so that you can access it from anywhere. This link is for Mac. The docs have link for Windows and Linux as well.