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/

相关文章:

java - Jellybean 上的 android.intent.action.BOOT_COMPLETED

java - 我如何将 BottomNavigationView 放在 <layout> 中?

android - 使用android studio覆盖创建 View

Android 虚拟设备方向(这是不同的)

android - 无法在 Android Studio 中安装模拟器

android - 存在的 AVD 不会在 "Target Tab"中列出

android - 从 fragment 的 onCreateView 方法向 savedInstanceState 添加变量

javascript - Android 中带回调的 Socket.emit - NodeJS

android - 为什么android无法解析符号但它仍然有效?

android-studio - 如何在 Android Studio 中禁用错误​​报告?