我无法在 Ubuntu 上的 Android Studio 中启动虚拟设备,该怎么办?

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

我正在尝试在 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

我到底做错了什么?如何进一步诊断?请帮忙。

背景:

  1. Android Studio:
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
  1. 操作系统:
    Ubuntu 24.04.1 LTS
  2. CPU:
    Intel® Core™ i7-8700 × 12
    ,VT-d 已启用
  3. Nvidia 驱动程序:
    Nvidia driver metapackage from nvidia-driver-550
  4. 已安装的软件包:
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
  1. Java
$ 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)
react-native android-studio ubuntu
1个回答
-1
投票

尽快联系 PhonePe 客户支持 08167-396291 报告问题并请求帮助解决问题。

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