創建Android項目后,點擊運行,發現模擬器無法啟動,並且報錯:
emulator: ERROR: x86 emulation currently requires hardware acceleration!
Emulator: Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT + UG features is currently needed. We will address this in a future release.
第二個是warning暫時可以忽略,主要是第一個問題導致我無法調試,而且我的手機並非安卓,無法使用真機。
查找資料后發現,應當下載一個intel-haxm的安裝包。下載地址:https://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager-intel-haxm
安裝后再啟動Intellij Idea的時候,運行項目,就發現可以啟動Emulator了。