无法在 Android Studio 中启动 Android 虚拟设备 (avds)

问题描述 投票:0回答:1

从 android studio 和通过 cli“模拟器”命令启动 AVD 失败。 (模拟器确实成功启动过一次)

采取的步骤: 创建像素 6 avd 安装系统镜像 从设备管理器中选择avd 系统托盘显示“正在启动 avd”,模拟器窗口显示“正在连接到模拟器” 模拟器无法启动。

尝试修复:

  • 擦除avd数据“擦除数据”
  • 冷启动avd“冷启动”
  • 在“硬件”、“软件”和“自动”之间切换“模拟性能”
  • 删除并重新安装avds
  • 使用“kill server”杀死adb服务器
  • 尝试通过
    emulator
    cli 命令启动
    emulator -list-avds
    返回:
    INFO    | Storing crashdata in: /tmp/android-skyjuice/emu-crash-34.2.13.db, detection is enabled for process: 5302
  • 卸载并重新安装 Android Studio
  • 将 /sdk、/platform-tools、/emulator、tools/bin 添加到我的
    PATH

Android模拟器、sdk 14、android SDK构建工具、Android SDK Platform工具都安装在android studio中。

想法.log

2024-05-09 16:10:02,713 [ 142492]   INFO - Emulator: Pixel 6 - Not yet booted
2024-05-09 16:10:05,650 [ 145429]   INFO - Emulator: Pixel 6 - Displaychange event: 0
2024-05-09 16:10:05,650 [ 145429]   INFO - Emulator: Pixel 6 - Display notification event: event: DISPLAY_CONFIGURATIONS_CHANGED_UI displayConfigurationsChangedNotification { displayConfigurations { displays { width: 1080 height: 2400 dpi: 420 } userConfigurable: 3 maxDisplays: 11 } }
2024-05-09 16:10:05,652 [ 145431]   INFO - #com.android.tools.idea.streaming.emulator.EmulatorView - Received notification: event: DISPLAY_CONFIGURATIONS_CHANGED_UI displayConfigurationsChangedNotification { displayConfigurations { displays { width: 1080 height: 2400 dpi: 420 } userConfigurable: 3 maxDisplays: 11 } }
2024-05-09 16:10:15,642 [ 155421]   WARN - #com.android.tools.idea.streaming.emulator.EmulatorController - android.emulation.control.EmulatorController/streamNotification call failed - UNAVAILABLE: Network closed for unknown reason
2024-05-09 16:10:15,642 [ 155421]   WARN - #com.android.tools.idea.streaming.emulator.EmulatorController - android.emulation.control.EmulatorController/streamScreenshot call failed - UNAVAILABLE: Network closed for unknown reason
2024-05-09 16:10:15,644 [ 155423]   INFO - #com.android.tools.idea.streaming.emulator.EmulatorController - Disconnected from Pixel 6 (5554)
2024-05-09 16:10:15,724 [ 155503]   INFO - Emulator: Pixel 6 - Process finished with exit code 139 (interrupted by signal 11:SIGSEGV)
2024-05-09 16:10:15,724 [ 155503]   WARN - Emulator: Pixel 6 - Emulator terminated with exit code 139
2024-05-09 16:10:15,897 [ 155676]   INFO - #com.android.tools.idea.adb.AdbService - Device [emulator-5554] is offline
2024-05-09 16:10:26,642 [ 166421]   INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities to files
2024-05-09 16:10:41,411 [ 181190]   INFO - #c.i.u.t.DateFormatUtil - cannot load system formats (JNA=true), resorting to JRE for en_US
2024-05-09 16:11:18,215 [ 217994]   WARN - #c.i.o.a.ActionStub - ActionGroup should be registered using <group> tag: id="Android.CreateResourcesActionGroup" class="org.jetbrains.android.actions.CreateResourceFileActionGroup"
2024-05-09 16:11:18,560 [ 218339]   WARN - #c.i.i.a.CopyTBXReferenceAction - Cannot find TBX tool for IDE: AndroidStudio
2024-05-09 16:11:36,265 [ 236044]   INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities to files
2024-05-09 16:11:36,313 [ 236092]   INFO - #c.i.c.ComponentStoreImpl - Saving Project(name=Greeting Card, containerState=COMPONENT_CREATED, componentStore=/home/skyjuice/AndroidStudioProjects/GreetingCard)KotlinCommonCompilerArguments took 11 ms

系统 Android Studio 水母 | 2023年3月1日 archlinux - 通过 AUR 安装的 android-studio

android android-studio android-emulator archlinux
1个回答
0
投票

我在 Windows 10 上使用 Jellyfish 时也遇到同样的问题。它出现在我的所有 AVD 中,甚至在擦除它们或创建新的 AVD 后也是如此。

我经常看到下面的窗口。在细节中,它说类似

Crash reason:  EXCEPTION_ACCESS_VIOLATION_WRITE
Crash address: 0x0

这对我没有多大帮助......

emulator crash window

© www.soinside.com 2019 - 2024. All rights reserved.