从 android studio 和通过 cli“模拟器”命令启动 AVD 失败。 (模拟器确实成功启动过一次)
采取的步骤: 创建像素 6 avd 安装系统镜像 从设备管理器中选择avd 系统托盘显示“正在启动 avd”,模拟器窗口显示“正在连接到模拟器” 模拟器无法启动。
尝试修复:
emulator
cli 命令启动 emulator -list-avds
返回:
INFO | Storing crashdata in: /tmp/android-skyjuice/emu-crash-34.2.13.db, detection is enabled for process: 5302
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