android AVD 启动时报错

AVD启动报错  

1.提示:ANDROID_SDK_ROOT is undefined / 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.

在Windows上:

打开CMD

输入:

setx -m ANDROID_SDK_ROOT '--path--to--sdk--'
在Mac / Linux上:

打开 Terminal/Shell.

Type:

export ANDROID_SDK_ROOT='--path--to--sdk--'
用你的sdk路径替换--path - to - sdk--。

 

2.提示: Emulator: emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it.

方法1:
- 更新您的操作系统的系统的显卡驱动程序。
- 重新启动您的系统。
- 设置你的系统的屏幕分辨率越高越好。
- 尝试从现在开始你的AVD。
方法2:
- 如果方法1 失败, 进入到AVD 管理器。
- 编辑您的AVD 。
- 取消选中 “使用主机GPU的选项。
- 点击 完成 (保存)。
- 开始再次AVD 。

 

注意:如果是AMD的CPU,则需要使用如下ABI,不能使用X86,它默认是因特尔CPU ;否则报错或是启动不了

 

 

posted @ 2019-03-12 09:59  lusCodding  阅读(9671)  评论(0编辑  收藏  举报