问题:运行AVD时出现
/dev/kvm is not found
Enable VT-x in your BIOS security settings,ensure that your Linux distro has working KVM module.
系统是ubuntu12.04
参照官方文档解决:
https://software.intel.com/en-us/blogs/2012/03/12/how-to-start-intel-hardware-assisted-virtualization-hypervisor-on-linux-to-speed-up-intel-android-x86-emulator
1.安装cpu-checker
# apt-get install cpu-checker
检查:检查是否使能VT enable Virtualization Technology (VT)
# kvm-ok
INFO: /dev/kvm does not exist
HINT: sudo modprobe kvm_intel
INFO: Your cpu supports KVM extensions
INFO: KVM (vmx) is disabled by your BIOS
HINT: Enter your BIOS setup and enable Virtualization Technology (VT),
and then hard poweroff/poweron your system
KVM acceleration can NOT be used
开机进入BIOS,找到advanced-secure virtual machine mode,选择为enable
之后再开机检查
# kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used
可以用了
2.安装KVM
#apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils ia32-libs-multiarch
3.创建AVD
Graphics:选择Software-GLES1.1
然后运行avd
安装apk 时出现
INSTALL_Failed_NO_MATCHING_ABIS
fix:在module的build.gradle的android节点添加模拟器的abi
splits{
abi{
enable true
reset()
include 'x86','armeabi-v7a','arm64-v8a'
universalApk true
}
}