android - 错误运行Android第一个程序

标签 android android-studio android-virtual-device haxm

enter image description here

我有 Windows 7。

我安装了 Android Studio Bundle 它可以工作,但问题是当我创建运行第一个程序时,它显示此错误:

模拟器:错误:x86 模拟当前需要硬件加速! 请确保英特尔 HAXM 已正确安装并可用。 CPU加速状态:HAX内核模块未安装!

甚至我检查了 Android SDK 管理器:- Intel x86 仿真器加速器(HAXM 安装程序)- 已安装

然后我运行了安装程序 intelhaxm.exe,但仍然出现错误,现在该怎么办。

enter image description here

最佳答案

当您通过 SDK 管理器下载 HAXM 时,它只会下载安装程序。您仍然需要打开文件夹并运行安装程序。如所述here :

"The SDK Manager will download the installer to the "extras" directory, under the main SDK directory. Even though the SDK manager says "Installed" it actually means that the Intel HAXM executable was downloaded. You will still need to run the installer from the "extras" directory to get it installed."

现在您必须使用 Windows 文件资源管理器打开 extras 文件夹并运行安装程序 intelhaxm.exe。在我的机器上,此安装程序位于 C:\Users\Paul\AppData\Local\Android\android-studio\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\。请注意,如果您要深入了解此路径,您可能需要在文件资源管理器中启用隐藏项目的查看,因为 AppData 文件夹通常是隐藏的。

关于android - 错误运行Android第一个程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27627649/

相关文章:

android - LiveData 如何知道房间数据库中的数据何时更改?

android - 有没有办法从下一次应用程序/进程崩溃测试继续进行 Espresso 测试?

android - 调试时看不到变量值

Android:未找到兼容的目标,但 AVD 可用

android - 如何在 Eclipse ADT 中修复我的 AVD?

android - Firebase C++ Cloud Messaging 后台问题

android - 在 Android 中绘制和缩放 ImageView 和 Canvas

android - 为什么我会收到此警告以及如何解决它 "This version only understands SDK XML versions up to 2 but an SDK XML..."

android - 使用 Android Studio 调试 C++ 库

android - 无法在 Android Studio Mac 中创建 AVD