# Use Android Emulator in VMware

### VM內的OS

windows 7 旗艦版，64位元

### 開啟HAXM

問題:\
&#x20; 開啟Android Studio 內的 SDK Manager，在 SDK Tools內不會有 "**Intel x86 Emulator Accelerator (HAXM installer)**"

解法:\
&#x20; I simply had to check 'virtualize intel vt-x/ept or amd-v/rvi' in my machine settings.

[![Enable Intel VT Virtualization](https://i.stack.imgur.com/7W0aP.png)](https://i.stack.imgur.com/7W0aP.png)

參考:\
[  https://stackoverflow.com/questions/32308519/intel-haxm-installation-error-in-vmware](https://stackoverflow.com/questions/32308519/intel-haxm-installation-error-in-vmware)

### 模擬器打不開

問題:\
&#x20; Emulator: Process finished with exit code -1073741819 (0xC0000005)

解法:\
&#x20; **Make sure your graphics driver is updated**

1. Go to **tools**
2. Go to **Android**
3. Select **AVD Manager**.

[![enter image description here](https://i.stack.imgur.com/3EThx.png)](https://i.stack.imgur.com/3EThx.png)

1. click on the **pencil icon** in under Action
2. Click **Advanced Settings** button.
3. In Emulated Performance row change Graphics to **Software GLES 2.0**
4. In Memory, row change RAM field to 512(minimum).

[![enter image description here](https://i.stack.imgur.com/lxsKC.png)](https://i.stack.imgur.com/lxsKC.png)

參考:\
&#x20; <https://stackoverflow.com/questions/47631771/emulator-process-finished-with-exit-code-1073741819-0xc0000005>
