Igo*_*ach 5 permissions android android-studio windows-10 flutter
我尝试运行 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.
Run Code Online (Sandbox Code Playgroud)
版本:
颤振 1.22.4,
视窗 10
我试图用 cmd 和 android-studio 创建一个 Flutter 项目,但结果是一样的。
我还为 flutter-sdk 目录、flutter 项目及其子目录授予了所有(包括 Dell 用户)的完全权限。
一旦尝试使用flutter create 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)".
Run Code Online (Sandbox Code Playgroud)
Flutter failed to write to a file at\n"C:\\Users\\Dell\\flutter-development\\projects\\flutter_complete_guide\\ios\\Runner\\GeneratedPluginRegistrant.h". The flutter\ntool cannot access the file.\nPlease ensure that the SDK and/or project is installed in a location that has read/write permissions for the current\nuser.\nRun Code Online (Sandbox Code Playgroud)\n确保您拥有 flutter 安装文件夹的所有权。看一下这个。
\nOS Error: Access is denied.\n, errno = 5\nRun Code Online (Sandbox Code Playgroud)\n\n\n\n错误 5:访问被拒绝是 Windows 10 上的一个已知问题。此错误\n会阻止您在计算机上安装软件并\n访问或修改某些文件。
\n出现此问题的原因是权限不可用。\n如果您不\xe2\x80\x99\n管理员权限或您的帐户不是管理员\n帐户,Windows 10 将阻止您安装。
\n
| 归档时间: |
|
| 查看次数: |
1430 次 |
| 最近记录: |