使用AMD處理器啓動AVD時出錯

本文翻譯自:Error in launching AVD with AMD processor

I have Windows 8.1 pro with an AMD processor. 我有帶AMD處理器的Windows 8.1 pro。 I installed the Android SDK and Eclipse. 我安裝了Android SDK和Eclipse。 It works but the problem is that when I Create AVD and launch it shows this error: 它可以工作,但問題是當我創建並啓動AVD時顯示此錯誤:

emulator: ERROR: x86 emulation currently requires hardware acceleration! 仿真器:錯誤:x86仿真當前需要硬件加速!
Please ensure Intel HAXM is properly installed and usable. 請確保正確安裝了英特爾HAXM並可以使用它。
CPU acceleration status: HAX kernel module is not installed! CPU加速狀態:未安裝HAX內核模塊!

I have already installed Intel Hardware_Accelerated_Execution_Manager and I have enabled Virtual modulation from the boot menu, but it's still not working. 我已經安裝了Intel Hardware_Accelerated_Execution_Manager,並且已經從啓動菜單中啓用了虛擬調製,但是仍然無法正常工作。


#1樓

參考:https://stackoom.com/question/1maJ3/使用AMD處理器啓動AVD時出錯


#2樓

You need to read (and post) the output of 您需要閱讀(併發布)的輸出

sc query intelhaxm

as stated on http://developer.android.com/tools/devices/emulator.html#accel-vm http://developer.android.com/tools/devices/emulator.html#accel-vm所述

You open a command prompt window by right click on the start menu, choose execute and write 'cmd'. 通過右鍵單擊開始菜單打開命令提示符窗口,選擇執行並寫入“ cmd”。

See also Android Emulator Doesn't Use HAXM . 另請參見Android模擬器不使用HAXM

If you cannot get the emulator to work you might want to try out an easier alternative: Genymotion - http://genymotion.com/ 如果無法使仿真器正常工作,則可能需要嘗試更簡單的替代方法:Genymotion- http ://genymotion.com/


#3樓

Make sure you have installed HAXM installer on your SDK Manager. 確保HAXM installer在SDK Manager上安裝了HAXM installer

Android SDK管理器

After you download it and make sure you run the setup located in: {SDK_FOLDER}\\extras\\intel\\Hardware_Accelerated_Execution_Manager\\intelhaxm.exe 下載它並確保運行位於以下位置的安裝程序: {SDK_FOLDER} \\ extras \\ intel \\ Hardware_Accelerated_Execution_Manager \\ intelhaxm.exe

Note: in Android Studio, the command "intelhaxm.exe" has been changed to "intelhaxm-android.exe" 注意:在Android Studio中,命令“ intelhaxm.exe”已更改爲“ intelhaxm-android.exe”

If you get the error "VT not supported" during the installation disable Hyper-V on windows features. 如果在安裝過程中出現錯誤“不支持VT” ,請禁用Windows功能上的Hyper-V。 You can execute this command dism.exe /Online /Disable-Feature:Microsoft-Hyper-V . 您可以執行此命令dism.exe /Online /Disable-Feature:Microsoft-Hyper-V You will also need "Virtualization Technology" to be enabled on your BIOS 您還需要在BIOS上啓用“虛擬化技術”


#4樓

So I am having this issue and it seems that unless you are on Linux you will not be able to use HAXM. 因此,我遇到了這個問題,似乎除非您使用Linux,否則將無法使用HAXM。 [EDIT: this is if you have an AMD chip (non intel) of course as that is the issue] [編輯:這當然是您是否擁有AMD芯片(非英特爾)的原因]

As stated on the Android Site; 如Android網站所述;

Many modern CPUs provide extensions for running virtual machines (VMs) more efficiently. 許多現代CPU提供了擴展,可以更有效地運行虛擬機(VM)。 Taking advantage of these extensions with the Android emulator requires some additional configuration of your development system, but can significantly improve the execution speed. 在Android模擬器中利用這些擴展功能需要對開發系統進行一些其他配置,但可以顯着提高執行速度。 Before attempting to use this type of acceleration, you should first determine if your development system's CPU supports one of the following virtualization extensions technologies: 在嘗試使用這種類型的加速之前,您應該首先確定開發系統的CPU是否支持以下虛擬化擴展技術之一:

 Intel Virtualization Technology (VT, VT-x, vmx) extensions 

> AMD Virtualization (AMD-V, SVM) extensions (only supported for Linux) > AMD虛擬化(AMD-V,SVM)擴展(僅Linux支持)

As others have mentioned Genymotion may be a solution. 正如其他人提到的那樣,Genymotion可能是一個解決方案。


#5樓

If you're running Mac, as @pedro mentions ensure you have the HAXM installer dowloaded via the Android SDK Manager. 如果您運行的是Mac,則如@pedro所述,請確保您已通過Android SDK Manager下載了HAXM安裝程序。

Next install it! 接下來安裝! In finder navigate to /YOUR_SDK_PATH/extras/intel/Hardware_Accelerated_Execution_Manager/ 在finder中導航到/YOUR_SDK_PATH/extras/intel/Hardware_Accelerated_Execution_Manager/

Run and install the .mpgk in the following .dmg 在以下.dmg中運行並安裝.mpgk

  • Yosemite: IntelHAXM_1.1.0_for_10.10.dmg 優勝美地: IntelHAXM_1.1.0_for_10.10.dmg
  • Pre-yosemite: IntelHAXM_1.1.0_below_10.10.dmg IntelHAXM_1.1.0_below_10.10.dmgIntelHAXM_1.1.0_below_10.10.dmg
  • El Capitan: IntelHAXM_6.0.1.dmg - please install the IntelHAXM_6.0.1.mpgk file within - it will ask you if you want to reinstall it. El Capitan:IntelHAXM_6.0.1.dmg-請在其中安裝IntelHAXM_6.0.1.mpgk文件-它會詢問您是否要重新安裝它。 Just say yes. 答應我。

Example: 例:

 $cd /YOUR_SDK_PATH/extras/intel/Hardware_Accelerated_Execution_Manager/ $open IntelHAXM_1.1.0_below_10.10.dmg 

#6樓

For those who are using Android Studio based on Jetbrains: 對於使用基於Jetbrains的Android Studio的用戶:

  1. Goto Tools > Android > SDK Manager 轉到工具> Android> SDK管理器

  2. Under Extras --> select the checkbox Intel x86 Emulator Accelorator 在其他->下,選中複選框英特爾x86仿真器加速器

For those who are unable to use Nexus AVD can also try using Generic AVD. 對於無法使用Nexus AVD的用戶,也可以嘗試使用通用AVD。

  1. Goto Tools > Android > AVD Manager 轉到工具> Android> AVD管理器

Then create a new Genreic AVD with something like QVGA and use for your app. 然後使用QVGA之類的東西創建一個新的Genreic AVD,並將其用於您的應用程序。 This AVD does not use hardware acceleration. 此AVD不使用硬件加速。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章