Launching lib/main.dart on sdk gphone64 arm64 in debug mode... main.dart:1 Exception: 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.
Exited
but when with other flutter projects it can be built but this project can't

I have faced the same issue. There is some extended attribute issue. Use this command
Read the man page of xattr for more information.