【发布时间】:2019-04-17 16:54:31
【问题描述】:
我正在尝试通过 AVD 使 Android Studio 和相关的模拟器在 Archlinux 下工作。
我刚刚安装了 android-studio、android-sdk 以及 Android Studio 所需的所有依赖项。当我尝试启动新创建的模拟器(没有特定设置)时,我收到以下错误消息:
17:25 * daemon not running; starting now at tcp:5037
17:25 Emulator: Couldn't statvfs() path: No such file or directory
17:25 * daemon started successfully
17:25 Emulator: Warning: libpng warning: iCCP: known incorrect sRGB profile ((null):0, (null))
17:25 Emulator: Warning: libpng warning: iCCP: known incorrect sRGB profile ((null):0, (null))
17:25 Emulator: qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.abm [bit 5]
17:25 Emulator: qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.abm [bit 5]
17:25 Emulator: qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.abm [bit 5]
17:25 Emulator: qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.abm [bit 5]
17:25 Emulator: Warning: QObject::moveToThread: Current thread (0x593c240) is not the object's thread (0x5a7d800).
17:25 Emulator: Cannot move to target thread (0x593c240)
17:25 Emulator: ((null):0, (null))
17:30 Emulator: emulator: ERROR: detected a hanging thread 'QEMU2 main loop'. No response for 15000 ms
17:30 Emulator: emulator: ERROR: detected a hanging thread 'QEMU2 CPU0 thread'. No response for 15000 ms
17:30 Emulator: emulator: ERROR: detected a hanging thread 'QEMU2 CPU1 thread'. No response for 15000 ms
17:30 Emulator: emulator: ERROR: detected a hanging thread 'QEMU2 CPU2 thread'. No response for 15000 ms
17:30 Emulator: emulator: ERROR: detected a hanging thread 'QEMU2 CPU3 thread'. No response for 15000 ms
17:30 Emulator: emulator: ERROR: detected a hanging thread 'QEMU2 main loop'. No response for 15000 ms
17:30 Emulator: Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
我已经重新安装了两次。我还检查了this topic,但没有成功。我不明白这些消息中的大部分,所以我有点迷茫。我尝试使用命令从命令行启动模拟器
/opt/android-sdk/emulator/emulator -avd Android_Wear_Round_API_P,它给了我同样的结果。
我很高兴能得到一些关于问题可能是什么的想法。
编辑
编辑2
我尝试运行的模拟器类型适用于 WearOS。作为测试,我尝试创建一个 Android Nexus。当图形设置为“软件”时,它可以工作。不幸的是,我无法为 WearOS 设备更改此选项。因此,它一直在崩溃。有时,它甚至使我的系统完全崩溃。我的屏幕死机了,我必须手动重置我的电脑。
【问题讨论】:
-
打开更新管理器,查看语音“SDK Tools”下是否安装了“Android Emulator”
-
我最近更新 Android Studio 时也遇到了这个问题。深入了解模拟器的运行方式,我发现模拟器本身位于 $HOME/Android/Sdk/emulator 中,而图像存储在 $HOME/.android /avd。可能是
t statvfs() path: No such file or directory有关系吗?我不记得旧模拟器版本的目录布局是什么。 -
玩 strace 我发现消息是关于缺少 .android/avd/
.avd/snapshots/default_foot 下的 ram.img i>. -
尝试用软件图形运行模拟器。这对我有帮助。
-
我遇到了与您类似的问题,但我认为您描述的是一个更严重的问题。我正在运行 Manjaro linux,我刚刚接受了提供的模拟器升级到版本 28.0.20。升级模拟器后,由于分段错误而不断崩溃。切换到软件 GL 让我可以启动模拟器。一旦进入设置中的一些配置,允许您返回到硬件打开 GL,我可能已经摆弄了其他一些事情,比如冷启动和重新启动计算机,但它又神奇地再次工作。这个问题感觉像是带有模拟器代码升级的设置迁移问题
标签: android android-studio android-emulator avd archlinux