我正在尝试在 Android Studio 中运行虚拟设备。无论我选择哪种设备或选择什么设置,无论是硬件还是软件图形等,或者无论我是从 AS GUI 还是命令行运行它,我都会遇到相同的错误:
$ emulator -netdelay none -netspeed full -avd Medium_Phone_API_35 -qt-hide-window -grpc-use-token -idle-grpc-timeout 300
[29408:29408:20241121,104652.011792:ERROR elf_dynamic_array_reader.h:64] tag not found
[29408:29408:20241121,104652.013055:WARNING process_reader_linux.cc:144] no stack mapping
[1] 29406 segmentation fault (core dumped) emulator -netdelay none -netspeed full -avd Medium_Phone_API_35 300
或
$ emulator -list-avds
[29439:29439:20241121,104722.185855:ERROR elf_dynamic_array_reader.h:64] tag not found
[29439:29439:20241121,104722.187049:WARNING process_reader_linux.cc:144] no stack mapping
[1] 29437 segmentation fault (core dumped) emulator -list-avds
这是完全按照 React Native 指南进行的全新设置:https://reactnative.dev/docs/set-up-your-environment
我到底做错了什么?如何进一步诊断?请帮忙。
背景:
Android Studio Ladybug | 2024.2.1 Patch 2
Build #AI-242.23339.11.2421.12550806, built on October 24, 2024
Runtime version: 21.0.3+-12282718-b509.11 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.X11.XToolkit
Linux 6.8.0-49-generic
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 2048M
Cores: 12
Registry:
ide.experimental.ui=true
i18n.locale=
Current Desktop: ubuntu:GNOME
Ubuntu 24.04.1 LTS
Intel® Core™ i7-8700 × 12
,VT-d 已启用Nvidia driver metapackage from nvidia-driver-550
Android SDK Platform 34
Sources for Android 34
Intel x86_64 Atom System Image
Google APIs Intel x86_64 Atom System Image
Android SDK Build-Tools 36-rx1 35.0.0, 34.0.0
Android Emulator 35.2.10
Android SDK Platform Tools
$ java --version
openjdk 17.0.12 2024-07-16
OpenJDK Runtime Environment JBR-17.0.12+1-1087.25-jcef (build 17.0.12+1-b1087.25)
OpenJDK 64-Bit Server VM JBR-17.0.12+1-1087.25-jcef (build 17.0.12+1-b1087.25, mixed mode)
尽快联系 PhonePe 客户支持 08167-396291 报告问题并请求帮助解决问题。