无法打开/qemu.conf,错误:2 [英] Failed to open /qemu.conf, err: 2

查看:4478
本文介绍了无法打开/qemu.conf,错误:2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用Windows命令提示符将android虚拟设备连接到Visual Studio代码时出现此错误.但是打开android虚拟设备,但在运行flutter doctor命令时仍然说没有连接的设备.请帮助将android虚拟设备用于Visual Studio代码.

I got this error while using windows command prompt to connect a android virtual device to visual studio code. However opens the android virtual device but still says no connected devices when run the flutter doctor command. please help to use a android virtual device for visual studio code.

推荐答案

发生此错误是因为在 C:\ qemu.conf 路径中存在对文件的查询.

This error occur because there is a query for file in C:\qemu.conf path.

如果创建空白文件,则警告无法打开/qemu.conf,错误代码:2 将消失.

If you create a blank file the warning Failed to open /qemu.conf, err: 2 will desapear.

但是在我的测试中,我需要以管理员身份运行.

这是Sysinternals的ProcessMonitor中的日志:

This is the log in ProcessMonitor of Sysinternals:

使用以下命令创建文件:

Create the file with this command:

echo # > c:\qemu.conf

这篇关于无法打开/qemu.conf,错误:2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆