小编Ziv*_*ler的帖子

无法在 macOS 上运行 Flutter doctor

我在两台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)
  • 将频道更改为 beta 或 master 也没有帮助
  • chown .config 文件夹没有帮助
  • chmod .config 文件夹没有帮助

通过下载 SDK 并将其解压到我的用户的桌面或文档或下载文件夹中,会发生此错误。如果我只是使用brew安装flutter SDK也会发生这种情况

flutter

5
推荐指数
1
解决办法
4881
查看次数

标签 统计

flutter ×1