新建模擬器啟動時出現以下錯誤:
18:29 Emulator: 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.
18:29 Emulator: emulator: ERROR: ANDROID_SDK_ROOT is undefined
18:29 Emulator: Process finished with exit code 1
解決方法:
1.在環境變量中添加ANDROID_SDK_ROOT
,指向你的SDK路徑;
此時再次啟動模擬器可能會報以下錯誤:
18:36 Emulator: 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.
18:36 Emulator: emulator: ERROR: ANDROID_SDK_ROOT is defined (D:\Android\SDK) but cannot find kernel file in D:\Android\SDK\system-images\ sub directories
18:36 Emulator: Process finished with exit code 1
此時看看你的SDK manager:
SDK manager
看看你的模擬器有沒有更新,有就直接更新,之后再啟動模擬器就不會報錯了。