AndroidStudio问题解决系列2—HAX is not working
来源:互联网 发布:echo gumi动作数据 编辑:程序博客网 时间:2024/06/05 19:23
1. 问题描述
在Windows环境下Android Studio 1.2.2中运行时,出现下面错误信息:
HAX is not working and emulator runs in emulation modeemulator: The memory needed by this AVD exceeds the max specified in your HAXM configuration.emulator: AVD RAM size = 1536 MBemulator: HAXM max RAM size = 512 MBemulator: You might want to adjust your AVD RAM size and/or HAXM configuration to run in fast virt mode.
在[2]中AndroidStudio初次运行过程中,已经创建好了Android虚拟设备Nexus_5_API_22_x86, 但这个虚拟设备现在运行时出现了手机界面,但是其中什么也没有显示出来。
2. 问题解决
什么是HAXM呢?它是Intel Hardware Accelerated Execution Manager (Intel® HAXM) 缩写,是Intel为了在开发主机上模拟Android app运行,使用虚拟化技术推出的一种利用硬件来辅助虚拟化的引擎。
在[1]中Android Studio安装过程中, HAXM缺省设置占用的内存为512MB。根据[4], 由于Nexus 5 AVD占用内存设置为1536MB,超过了HAXM的内存,因此模拟器无法正常运行。即AVD占用内存不能高于HAXM分配内存。 但是改变HAXM内存只能重装。
2.1 通过Android SDK Manager下载HAXM
点击Android SDK Manager, 在Extras中勾选”Intel x86 Emulator Accelerator (HAXM).”。 然后点击”Installpackage…”按钮开始安装HAXM,选择Accept后开始安装。 当安装完成后,出现安装成功日志: 但实际上,这里只是HAXM包下载到了extras/intel目录下,还需要手动来安装。
2.2 手动安装HAXM
双击”intelhaxm-android.exe”文件开始安装,首先出现下面欢迎窗口: 由于已经安装过HAXM, 所以这里出现了Change, Repair和Remove的选项,这里选择Change按钮。这里采用系统推荐的缺省值2GB,然后继续下一步: 然后点击“Change”按钮开始修改原来的设置。如果要修改Intel HAXM内存,需要重新运行HAXM Installer。
再次运行原来的程序,可看出HAX正常运行:
emulator: device fd:17596
HAX is working and emulator runs in fast virt modeemulator: warning: opening audio input failedcreating window 61 83 462 820emulator: emulator window was out of view and was recentered而且应用程序出现在了这个虚拟手机界面上,至此问题解决。参考:[AS问题解决系列4—HAX is not working](http://my.oschina.net/1pei/blog/480056#OSC_h1_1)
- AndroidStudio问题解决系列2—HAX is not working
- Android Studio问题解决系列—HAX is not working
- HAX is not working and emulator runs in emulation mode
- HAX is not working 安卓模拟器启用硬件加速失败
- HAX is not working and emulator runs in emulation mode
- HAX is not working and emulator runs in emulation mode
- android studio下“HAX is not working...”问题的解决
- HAX is not working and emulator runs in emulation mode
- 解决Android 模拟器 “HAX is not working and emulator runs in emulation mode” 错误
- 关于Android Studio运行出现HAX is not working 的解决办法
- hax kernel module is not install
- ClientException: Path is not a working copy directory问题解决办法
- HAX is not installed on this machine (/dev/HAX is missing) 解决办法
- CPU acceleration status: HAX kernel module is not installed
- CPU acceleration status: HAX kernel module is not installed!
- 解决“HAX kernel module is not installed!”的问题
- Android模拟器-HAX kernel module is not installed问题
- Xamarin.Android模拟器提示HAX kernel module is not Installed
- 设计模式(8):中介者模式
- android中如何实现进入一个界面不做任何动作过10秒钟自动跳转到其他activity?
- 设计模式——结构型模式
- 数据分析师成长之路
- LVM配置
- AndroidStudio问题解决系列2—HAX is not working
- HDU 1003 Max Sum 最大连续子序列和
- UVA - 1658(网络流经典拆点方法)
- Mysql:is not allowed to connect to this MySQL server
- 插入算法(C语言)
- 每日一“结”(3)
- Leet Code 11 Container With Most Water
- Linux中文乱码问题
- HDU2546【01背包问题模板题】