Error while waiting for device: The emulator process for AVD Pixel_2_XL_API_28 was killed.

报错信息

Error while waiting for device: The emulator process for AVD Pixel_2_XL_API_28 was killed._第1张图片

解决方案

1、找到你的SDK文件夹,然后鼠标放到上面的框中,复制你的SDK路径。
Error while waiting for device: The emulator process for AVD Pixel_2_XL_API_28 was killed._第2张图片
2、在系统变量中添加变量。变量名为:ANDROID_SDK_HOME,变量值为:你SDK文件夹的路径
Error while waiting for device: The emulator process for AVD Pixel_2_XL_API_28 was killed._第3张图片
3、然后将C:\Users\用户名\ 该路径下的.android文件夹剪切到SDK文件夹中。
Error while waiting for device: The emulator process for AVD Pixel_2_XL_API_28 was killed._第4张图片
4、再次启动AVD,发现出现模拟器,并且自动开机了。
Error while waiting for device: The emulator process for AVD Pixel_2_XL_API_28 was killed._第5张图片
5、运行项目,发现项目也可以成功运行在AVD上了。
Error while waiting for device: The emulator process for AVD Pixel_2_XL_API_28 was killed._第6张图片

人的志向通常和他们的能力成正比例。

你可能感兴趣的:(Android经验,android,android,studio,安卓,移动应用开发,安卓模拟器)