Android studio报错:The emulator process for AVD (xxx) was killed

背景:重做系统后重新配置Android studio 安装虚拟机后无法启动

log中显示为启动AVD的进程被杀

控制台显示为:在虚拟机列表里没有找到所要启动的AVD的名称

 

首先考虑是BIOS问题:发现此路径:C:\Users\Administrator\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager

下的进程intelhaxm-android.exe已安装

Android studio报错:The emulator process for AVD (xxx) was killed_第1张图片

或者是从studio中

Tools->SDK manager->Appearance&Behavior->System Settings->Android SDK->SDK Tools 下的HAXM已安装

Android studio报错:The emulator process for AVD (xxx) was killed_第2张图片

在studio自动配置sdk时已安装好,证明不是BIOS问题(而且重做系统前确实手动开启过BIOS)

 

(分界线)---------------------------------------------------------------------------------------------------------------------------------------------------------

在网上看到studio会将模拟器安装在C:\Users\Administrator\.android\avd  下

Android studio报错:The emulator process for AVD (xxx) was killed_第3张图片

而我重新配置的sudio以及环境变量中的sdk位置不在此文件夹中,故stduio会查询不到此avd名称

 

解决方法:

1,查看环境变量中自己配置的sdk路径(变量名自己配置/命名的)

Android studio报错:The emulator process for AVD (xxx) was killed_第4张图片

2,找到虚拟机默认安装位置C:\Users\Administrator\.android

Android studio报错:The emulator process for AVD (xxx) was killed_第5张图片

3,将此avd文件夹复制到刚刚的sdk文件夹下

Android studio报错:The emulator process for AVD (xxx) was killed_第6张图片

 

这样studio就可以正常读取到所安装的avd了

Android studio报错:The emulator process for AVD (xxx) was killed_第7张图片

你可能感兴趣的:(Android studio报错:The emulator process for AVD (xxx) was killed)