flutter - Flutter 无法写入位于“C:\Users\XXXX\Desktop\AppFolder\FApp\.flutter-plugins”的文件。flutter工具无法访问文件
问题描述
我在尝试构建 Flutter 项目时遇到了这个错误。
我从终端和 android studio 都尝试了颤振命令。
Flutter failed to write to a file at "C:\Users\XXXX\Desktop\AppFolder\Flutter-App-v2.0\.flutter-plugins". 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.
解决方案
错误是我从 Windows 安全设置中限制了对该文件夹的访问。
Restricted Access
我的勒索软件保护文件下有该文件夹。
检查转到Windows Security
-> Virus & Threat Protection
-> Ransomware protection
-> Protected Folder
。并删除文件。
如果这不能解决您的问题,请尝试在任何其他文件夹中创建一个颤振项目。或者有些东西不允许 Flutter SDK 对该文件夹进行更改。它也可以是你的antivirus software
。
推荐阅读
- maven - 如何配置 Android Studio 以在项目中包含包含 pom.xml 的配置文件夹?
- function - 如何将字符串数组传递给函数并在 SQL 的“IN”语句中使用它
- python - 数据框唯一项目和 xy 位置到室友(共享位置)项目网格
- angular - Angular 9 ngx-image-cropper 使用滑块调整裁剪器大小
- java - 将字符串转换为键值对并在java中将其转换为一行
- python - 如何为误差线分配颜色?[Matplotlib]
- laravel - 如何使用 Laravel 进行多用户进程?
- css - 为什么我的 Angular 应用程序没有拿起可动手做的 CSS?
- c# - 从没有外部 SMTP 的 C# WPF 应用程序发送电子邮件
- image - 复制带有图像的幻灯片 python pptx