eclipse配置AVD
一、找到eclipse上面工具栏的手机小图标
没有手机图标的解决办法:
如果没有出现这android图标,选择'Window>Customize Perspective...>Commands',并在'Available command groups'中勾选'android'相关的几个选项,完成后工具栏中会出现相关的图标。
创建新的虚拟机
第一次创建可能会慢一些
创建成功后
可能遇到的问题
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.
将 android-sdk-windows\system-images\android-27\google_apis\x86 目录下的 “kernel-ranchu-64” 文件改名为 “kernel-qemu”,然后重新 start 虚拟机
ERROR: x86 emulation currently requires hardware acceleration!
到 android-sdk-windows\extras\intel 目录,再手动点击 intelhaxm-android.exe
安卓虚拟机黑屏
因为安装和创建的是高版本的API 29,Android10
后来换成了Android9也不行
最后下载安装的Android5,API 21 启动成功
搜了很多,几乎解决办法都是换成低版本的,然后也没有搜到具体黑屏的原因和如何能正常启动高版本的,后续再说吧。