HAX正在运行,模拟器在Android Studio的AVD中以快速virt模式运行

时间:2016-04-28 07:57:09

标签: android android-studio virtual-device-manager

当我尝试在Android Studio中启动模拟器时,我收到以下错误消息

emulator: WARNING: Crash service did not start
emulator: WARNING: Increasing RAM size to 1024MB
emulator: WARNING: VM heap size set below hardware specified minimum of 384MB
emulator: WARNING: Setting VM heap size to 384MB
Hax is enabled
Hax ram_size 0x40000000
HAX is working and emulator runs in fast virt mode.
qemu-system-i386.exe: -drive if=none,index=1,id=cache,file=C:\Users\user\.android\avd\Samsung_Galaxy_S6_edge_API_22.avd/cache.img: could not open disk image C:\Users\user\.android\avd\Samsung_Galaxy_S6_edge_API_22.avd/cache.img: Could not open 'C:\Users\user\.android\avd\Samsung_Galaxy_S6_edge_API_22.avd/cache.img': Invalid argument

现在我无法启动模拟器。我怎么能解决这个问题?

2 个答案:

答案 0 :(得分:1)

1)检查你的Haxm尺寸是多少,设置为大于1024MB
2)将Avd Ram大小减少到756MB

尝试这两点;

答案 1 :(得分:0)

安装具有756 RAM的HAXM:

sudo $ANDROID_SDK/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/silent_install.sh -u
sudo $ANDROID_SDK/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/silent_install.sh -m 756