android AVD 启动时报错

操作系统版本 以及 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,启动成功。

这里写图片描述

这里写图片描述

这里写图片描述

评论 10
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值