Android Studio 模拟器问题 - HAXM、VT-x

Android Studio Emulator issues - HAXM, VT-x

我正在尝试使用 Android Studio(运行 在 Windows 8.1 Pro 上)开发一个 Android 应用程序,但我无法让模拟器工作,并且不想尝试将我的应用程序的每个迭代加载到我的 phone.

我尝试启动模拟器时遇到的错误(Nexus 5,Android 7.0 x86,所有模拟器图像都已下载并安装):

我已确认在我的 BIOS 中启用了 VT-x。最重要的是,我不知道为什么它会告诉我有关 linux 发行版的任何信息;正如我上面提到的,我 运行 在 Windows 8.1.

我还验证了 BIOS 中启用了英特尔虚拟化技术。

验证/dev/kvm是否存在的路径是什么?

或者,更重要的是,我怎样才能让这个令人作呕的东西发挥作用?

我尝试过的其他事情:

有什么建议吗?

您的系统 运行 Windows 8.1 Pro 请在 BIOS 中启用 Intel 虚拟化技术 请按照以下步骤操作

For More Information And Example

转到您的 BIOS 设置,在“系统配置”选项卡中,启用虚拟化技术。

好吧,我想通了,虽然我仍然无法获得更快的 x86 模拟器 运行。

我尝试使用外部 AVD 管理器从头开始创建一个新的虚拟设备,但即使在通过外部 SDK 管理器下载 ARM 64 v8a 系统映像后,我也无法让我的自定义虚拟设备工作。

打开 Android Studio 的内置 AVD 管理器(顶部工具栏上的 AVD 管理器按钮),它提示我下载该虚拟设备的系统映像(就在该设备的 Play/Start 按钮)。 一旦下载并解压缩,我就可以成功启动虚拟设备并且我的模拟器可以正常工作。

它有点迟钝,我敢打赌,如果我能得到 Android Studio 推荐使用的 "proper" x86 模拟器,它会更活泼,但总比没有好。

看来我遇到了和你上面提到的同样的问题。但是我没有收到系统镜像下载的任何提示,我应该手动下载镜像吗?需要下载什么系统镜像?你能分享吗?谢谢!

下载sys镜像后,ADV仍然无法运行,报错:

/dev/kvm is not found

当我手动重新安装 HAXM 时,我收到了同样的错误:

Failed to configure driver: unknown error. Failed to open driver

我找到了一个solution on the Intel forum,它对我有用,模拟器现在可以了。

以上内容的相关摘录见下文link

I. Preparing---------------------------------------------------------
(Optional: check or change your BIOS settings for Intel VT, disable hyper-v, ... as mentioned in other answers.)
1. download and extract the file to a folder
2. cmd -> sfc /SCANNOW
3. reboot
4. cmd -> Bcdedit -set TESTSIGNING ON
5. reboot
II. Installation-----------------------------------------------------
1. start install-android.exe in the folder of the extracted file and install
1.1 if you don't get an error the previous steps have handled the error - continue to III.
1.2 if you get an error DO NOT click OK when the error occurs
3. go to C:\Program Files\Intel\HAXM and copy all files, except *.tmp to a new folder
4. then continue/finish the setup (click OK and finish)
5. copy the files from the new folder to C:\Program Files\Intel\HAXM and delete *.tmp
6. go to C:\Program Files\Intel\HAXM, right-click on the inf-file and choose install
a window with driverinstallation should appear. install driver. it should says ok then..
hint: this is what made the difference for me!
Starting "HaxInst64.exe /i intelhaxm.inf 1" as well as with parameter 4 in the console did
not pop up the driverinstallation-window
III. Test------------------------------------------------------------
1. cmd -> sc query intelhaxm
it should show the service
2. reboot
3. cmd -> sc query intelhaxm
it should says service running..
IV. Reset------------------------------------------------------------
1. cmd -> Bcdedit -set TESTSIGNING OFF
2. reboot