我在两台macbook上安装了flutter 3.0.5,两台macbook都是intel芯片。
在一台 MacBook 上,flutter 运行良好。在第二台 MacBook 上,我可以运行 flutter channel 但是当我运行 flutter doctor 时,我收到此错误
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
Run Code Online (Sandbox Code Playgroud)
通过下载 SDK 并将其解压到我的用户的桌面或文档或下载文件夹中,会发生此错误。如果我只是使用brew安装flutter SDK也会发生这种情况
小智 0
请检查以下权限
flutter工具无法访问该文件或目录。
请确保 SDK 和/或项目安装在当前用户具有读/写权限的位置。
阅读正确安装的文档,然后重试 - https://docs.flutter.dev/get-started/install/macos
| 归档时间: |
|
| 查看次数: |
4881 次 |
| 最近记录: |