模拟器启动错误:ERROR: This AVD's configuration is missing a kernel file!

新建模拟器启动时出现以下错误:

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:

《模拟器启动错误:ERROR: This AVD's configuration is missing a kernel file!》 SDK manager

看看你的模拟器有没有更新,有就直接更新,之后再启动模拟器就不会报错了。

    原文作者:ncd
    原文地址: https://www.jianshu.com/p/87f69e0a3bef
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞