解決android報錯:Intel HAXM is required to run this AVD
今天,簡單講解Android 啟動模擬器時,提示錯誤:
Intel HAXM is required to run this AVD. VT-x is disabled in BIOS. Enable VT-x in your BIOS security settings (refer to documentation for your computer)的問題。
這個問題其實是Android studio是否下載了Download Intel x86 Emulator Accelerator (HAXM installer),所以檢查SDK manager是否下載Download Intel x86 Emulator Accelerator (HAXM installer),如果下載了,那么可能是電腦沒有開啟虛擬化技術,去BIOS開啟Intel虛擬化。
具體步驟如下:
1.首先在SDK Manager中檢查是否安裝Download Intel x86 Emulator Accelerator (HAXM installer),如果沒有安裝,則在SDK Manager中下載安裝Download Intel x86 Emulator Accelerator (HAXM installer)。
2.到SDK目錄下(一般是C:\Users\Administrator\AppData\Local\Android\sdk),在這個目錄下沿著 extras > intel > Hardware_Accelerated_Execution_Manager 目錄找到intelhaxm-android.exe這個文件安裝定并運行。
3.在安裝的過程中,你可能會遇到這樣的錯誤提示:”Intel virtualization technology (vt,vt-x) is not enabled”,不用擔心,這時你只需要進入BIOS界面在“configurations”中找到“Intel Virtualization Technology”將其設置成Enable即可(關于進入BIOS界面的方式不同的電腦大同小異,我的筆記本是聯(lián)想筆記本,所以我在開機顯示聯(lián)想logo的一瞬間按下F2即進入了BIOS界面)。
android 解決錯誤:Intel HAXM is required to run this AVD就講完了。
就這么簡單。
補充知識:解決AMD CPU 啟動Android模擬器時無法安裝Intel HAXM 的問題
剛買的電腦,是用的AMD的CPU,在安裝Android開發(fā)環(huán)境時,遇到以下問題:
Failed to install Intel HAXM. For details, please check the installation log: "C:\Users\zhangqs\AppData\Local\Temp\haxm_log9.txt" HAXM installation failed. To install HAXM follow the instructions found at: https://software.intel.com/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-windows Installer log is located at C:\Users\zhangqs\AppData\Local\Temp\haxm_log9.txt Installer log contents: === Logging started: 2020/1/4 13:34:14 === This computer does not support Intel Virtualization Technology (VT-x) or it is being exclusively used by Hyper-V. HAXM cannot be installed. Please ensure Hyper-V is disabled in Windows Features, or refer to the Intel HAXM documentation for more information. === Logging stopped: 2020/1/4 13:34:14 === Done
網(wǎng)上搜了很多辦法,試過下面幾種,都不行。
1.關閉Hyper-V。
2.禁用Hyper-V相關的服務。
3.單獨下載Intel HAXM安裝。
試了很多次,都失敗了。
我的電腦配置是:
在網(wǎng)上一搜,說是Android Studio已經(jīng)支持AMD CPU的,后面在Android SDK配置項中終于發(fā)現(xiàn)有這么一項。
(根據(jù)下面圖中2處紅色標記就可以找到Android對應的AMD模擬器驅動)
簡單的來說,就是以下步驟:
1.開機進入BIOS,設置CPU開啟虛擬化。是否開啟,可以通過任務管理器確定。
2.關閉Win10的Hyper-V和Windows Hypervisor Platform 和 Windows Sandbox。
(如果不知道是該勾選,還是不勾選,跟下面截圖的選中狀態(tài)一致即可。)
對應中文版的系統(tǒng)是:
3.打開命令行,進到:
$ANDROID_SDK_ROOT\extras\google\Android_Emulator_Hypervisor_Driver.
($ANDROID_SDK_ROOT\ 是Android SDK的安裝路徑,如果不是安裝在默認路徑,需要你手動改一下)
運行:silent_install.bat,如果執(zhí)行結果返回是:STATE: 4 RUNNING,說明安裝成功。
至此,就可以使用Android針對AMD處理器的高性能模擬器了。
以上這篇解決android報錯:Intel HAXM is required to run this AVD就是小編分享給大家的全部內(nèi)容了,希望能給大家一個參考,也希望大家多多支持腳本之家。
- Android編譯出現(xiàn)Warning:Mapping?new?ns?to?old?ns報錯的解決方案
- Android報錯Error:Could not find com.android.tools.build:gradle:4.1解決辦法
- AndroidStudio報錯Emulator:PANIC:Cannot find AVD system path. Please define ANDROID_SDK_ROOT(解決方案)
- Eclipse新建Android項目報錯解決方案詳細匯總
- Android studio 切換flutterSDK之后報錯及解決辦法(推薦)
- Android報錯Didn‘t?find?class?“android.view.x“問題解決原理剖析
相關文章
Android實現(xiàn)省市區(qū)三級聯(lián)動
這篇文章主要為大家詳細介紹了Android實現(xiàn)省市區(qū)三級聯(lián)動,Spinner實現(xiàn)省市區(qū)的三級聯(lián)動,具有一定的參考價值,感興趣的小伙伴們可以參考一下2018-07-07關于Fragment?already?added問題的解決方案
這篇文章主要介紹了關于Fragment?already?added問題的解決方案,具有很好的參考價值,希望對大家有所幫助。如有錯誤或未考慮完全的地方,望不吝賜教2022-10-10老生常談Android HapticFeedback(震動反饋)
下面小編就為大家?guī)硪黄仙U凙ndroid HapticFeedback(震動反饋)。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2017-04-04