The emulator process for AVD xxx has terminated

问题描述

离线环境下部署Android虚拟机,启动时报错The emulator process for AVD xxx has terminated,其中xxx为虚拟机名称。

解决过程

可先在C:\Users\admin\AppData\Local\Google\AndroidStudio2024.3\log目录下找到idea.log文件,其中记录了错误日志,有更详细的错误信息,该文件中显示:

复制代码
2025-04-04 15:02:49,240 [ 278096]   INFO - Emulator: Pixel Tablet - D:\software\AndroidSDK\emulator\emulator.exe -netdelay none -netspeed full -avd Pixel_Tablet -qt-hide-window -grpc-use-token -idle-grpc-timeout 300
2025-04-04 15:02:49,270 [ 278126]   INFO - Emulator: Pixel Tablet - Android emulator version 35.5.8.0 (build_id 13181580) (CL:N/A)
2025-04-04 15:02:49,270 [ 278126]   INFO - Emulator: Pixel Tablet - Graphics backend: gfxstream
2025-04-04 15:02:49,270 [ 278126]   INFO - Emulator: Pixel Tablet - Found systemPath D:\software\AndroidSDK\system-images\android-36\google_apis_playstore\x86_64\
2025-04-04 15:02:49,357 [ 278213]   WARN - Emulator: Pixel Tablet - Please update the emulator to one that supports the feature(s): VulkanVirtualQueue
2025-04-04 15:02:49,357 [ 278213]   INFO - Emulator: Pixel Tablet - Increasing RAM size to 3072MB
2025-04-04 15:02:49,357 [ 278213]   INFO - Emulator: Pixel Tablet - IPv4 server found: 114.114.114.114
2025-04-04 15:02:49,357 [ 278213]   INFO - Emulator: Pixel Tablet - Ignore IPv6 address: 388f:cc3e:9b01:0:a087:cc3e:9b01:0
2025-04-04 15:02:49,357 [ 278213]   INFO - Emulator: Pixel Tablet - Ignore IPv6 address: 388f:cc3e:9b01:0:a087:cc3e:9b01:0
2025-04-04 15:02:49,357 [ 278213]   INFO - Emulator: Pixel Tablet - Ignore IPv6 address: 388f:cc3e:9b01:0:a087:cc3e:9b01:0
2025-04-04 15:02:49,357 [ 278213]   INFO - Emulator: Pixel Tablet - Checking system compatibility:
2025-04-04 15:02:49,357 [ 278213]   INFO - Emulator: Pixel Tablet -   Checking: hasCompatibleHypervisor
2025-04-04 15:02:49,357 [ 278213]   INFO - Emulator: Pixel Tablet -      Ok: Hypervisor compatibility to run avd: `Pixel_Tablet` are met
2025-04-04 15:02:49,357 [ 278213]   INFO - Emulator: Pixel Tablet -   Checking: hasSufficientSystem
2025-04-04 15:02:49,357 [ 278213]   INFO - Emulator: Pixel Tablet -      Ok: System requirements to run avd: `Pixel_Tablet` are met
2025-04-04 15:02:49,357 [ 278213]   INFO - Emulator: Pixel Tablet -   Checking: hasSufficientHwGpu
2025-04-04 15:02:49,357 [ 278213]   INFO - Emulator: Pixel Tablet -      Ok: Hardware GPU requirements to run avd: `Pixel_Tablet` are passed
2025-04-04 15:02:49,357 [ 278213]   INFO - Emulator: Pixel Tablet -   Checking: hasSufficientDiskSpace
2025-04-04 15:02:49,357 [ 278213]   INFO - Emulator: Pixel Tablet -      Ok: Disk space requirements to run avd: `Pixel_Tablet` are met
2025-04-04 15:02:49,357 [ 278213]   WARN - Emulator: Pixel Tablet - unknown skin name 'pixel_tablet'
2025-04-04 15:02:49,365 [ 278221]   INFO - Emulator: Pixel Tablet - Process finished with exit code 1
2025-04-04 15:02:49,365 [ 278221]   WARN - Emulator: Pixel Tablet - Emulator terminated with exit code 1

可知,Android studio无法找到该虚拟机,打开虚拟机存放目录C:\Users\admin\.android\avd\Pixel_Tablet.avd,或者在Android studio中show on disk,找到config.ini配置文件,修改skin.path为当前SDK位置。

出现SDK位置错误的原因是在联网电脑上下载好了虚拟机与其对应配置,将其直接复制到离线机器上,没有修改,所以出现这种问题。

复制代码
skin.path = D:\software\AndroidSDK\AndroidSDK\skins\pixel_tablet

修改完成,成功启动虚拟机。

相关推荐
韩曙亮13 小时前
【Android】Android 源码查看 ( Android 源码在线查看 2026-03-30 | Android 源码下载 | Android 源码查看工具 )
android·安卓·安卓源码·aosp·android 源码·android源码查看工具·android 源码工具
欲儿1 天前
magicCamera—魔术师的 AR 卡牌应用
opencv·安卓·魔术师
Mackkill1 天前
Android-纯H5页面项目踩坑记录
安卓
凛_Lin~~4 天前
lifecycle源码解析 (版本2.5.1)
android·java·安卓·lifecycle
꯭爿꯭巎꯭5 天前
澎湃工具箱下载v3.8.9 (官网版)澎湃系统工具箱
android·智能手机·安卓
我命由我123455 天前
Jetpack Compose - 设置 Compose 编译器、设置 Compose 依赖项
android·java·java-ee·kotlin·android jetpack·android-studio·android runtime
humors2216 天前
全平台日常使用的国外应用
android·ios·app·安卓·应用·国外
敲代码的瓦龙6 天前
Android?碎片!!!
java·开发语言·android-studio
LuDvei7 天前
超简单的android 连接第三方模拟器方法
android-studio
lichenyang4538 天前
媒体选择、上传与音频采集 API 实现流程
oracle·音视频·媒体·android-studio