android AVD 啟動時報錯
阿新 • • 發佈:2019-01-08
作業系統版本 以及 Android SDK Manager 版本
- Win7
- Android SDK Manager 25.2.5
- 虛擬機器配置如下
ERROR: This AVD’s configuration is missing a kernel file! Please ensure the file “kernel-qemu” is in the same location as your system image.
問題描述
執行 AVD 虛擬機器時報錯:
emulator: ERROR: This AVD's configuration is missing a kernel file! Please ensure the file "kernel-qemu" is in the same location as your system image. emulator: ERROR: ANDROID_SDK_ROOT is undefined
解決方法
受 https://blog.csdn.net/shinebar/article/details/46402727 啟發,將 android-sdk-windows\system-images\android-27\google_apis\x86 目錄下的 “kernel-ranchu-64” 檔案改名為 “kernel-qemu”,然後重新 start 虛擬機器
emulator: ERROR: x86 emulation currently requires hardware acceleration!
解決方法
不能夠通過 Android SDK Manager 直接安裝,因為 Not compatible with Windows
可以去 http://www.androiddevtools.cn/index.html 下載 Android SDK Extras , 然後解壓 Hardware_Accelerated_Execution_Manager 到 android-sdk-windows\extras\intel 目錄,再手動點選 intelhaxm-android.exe
安裝。
到這裡應該AVD應該可以啟動起來的,但是AVD啟動起來是黑屏的,沒有任何反應。
最後,安裝了 Android 5.1.1 的API 以及 建立一個 Android 5.1.1 的AVD,啟動成功。