gpt4 book ai didi

android - flutter工具无法访问文件

转载 作者:行者123 更新时间:2023-12-04 11:44:22 25 4
gpt4 key购买 nike

我尝试运行 Flutter 项目但出现错误

Flutter failed to write to a file at
"C:\Users\Dell\flutter-development\projects\flutter_complete_guide\ios\Runner\GeneratedPluginRegistrant.h". The flutter
tool cannot access the file.
Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current
user.
版本:
flutter 1.22.4,
window 10
我试图用 cmd 和 android-studio 创建一个 Flutter 项目,但结果是一样的。
我也为所有(包括戴尔用户)的 flutter-sdk 目录、flutter 项目及其子目录授予了完全权限。
一旦尝试使用 从头开始​​构建项目 flutter 创建 myapp
得到下一个错误
PS C:\src1\project> flutter create myapp
Recreating project myapp...
myapp\android\app\src\main\res\mipmap-mdpi\ic_launcher.png (created)
Failed to send crash report due to a network error: SocketException: OS Error: Access is denied.
, errno = 5, address = clients2.google.com, port = 63568
Oops; flutter has exited unexpectedly: "FileSystemException: Cannot copy file to 'C:\src1\project\myapp\android\app\src\main\res\mipmap-mdpi\ic_launcher.png', path =
'C:\src1\flutter\packages\flutter_tools\templates\app\android.tmpl\app\src\main\res\mipmap-mdpi\ic_launcher.png' (OS Error: Access is denied.
, errno = 5)".

最佳答案

Flutter failed to write to a file at
"C:\Users\Dell\flutter-development\projects\flutter_complete_guide\ios\Runner\GeneratedPluginRegistrant.h". The flutter
tool cannot access the file.
Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current
user.
确保您拥有 Flutter 安装文件夹的所有权。查看 this出去。
OS Error: Access is denied.
, errno = 5

Error 5: Access denied is a known issue on Windows 10. This errorprevents you from installing software on your computer and accessingor modifying certain files.

The reason for this issue is the non-availability of the permissions.Windows 10 will prevent you from installing if you don’t have theAdministrator privileges or if your account is not the administratoraccount.


Getting administrator privileges for your account on the computer solves this problem.

关于android - flutter工具无法访问文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65211883/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com