模拟器启动错误: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:


SDK manager

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

你可能感兴趣的:(模拟器启动错误:ERROR: This AVD's configuration is missing a kernel file!)