Can';t启动Android AVD模拟器
我正试图通过AVD使Android Studio和相关的仿真器在Archlinux下工作 我刚刚安装了androidstudio、androidsdk以及androidstudio需要的所有依赖项。当我尝试启动新创建的emulator(没有特定设置)时,我收到以下错误消息:Can';t启动Android AVD模拟器,android,android-studio,android-emulator,avd,archlinux,Android,Android Studio,Android Emulator,Avd,Archlinux,我正试图通过AVD使Android Studio和相关的仿真器在Archlinux下工作 我刚刚安装了androidstudio、androidsdk以及androidstudio需要的所有依赖项。当我尝试启动新创建的emulator(没有特定设置)时,我收到以下错误消息: 17:25 * daemon not running; starting now at tcp:5037 17:25 Emulator: Couldn't statvfs() path: No such file
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)
我已经重新安装了两次了。我也检查过,但没有成功。这些信息我大部分都不懂,所以我有点迷路了。我试图用命令行启动模拟器
/opt/android sdk/emulator/emulator-avd-android\u-Wear\u-Round\u-API\P
,它给了我同样的结果
我很高兴能得到一些关于问题可能是什么的想法
编辑
以下是相关情况下安装的元件:
编辑2
我尝试运行的模拟器类型是针对WearOS的。作为测试,我尝试创建一个Android Nexus one。当图形设置为“软件”时,它工作。不幸的是,我无法为WearOS设备更改此选项。因此,它不断崩溃。有时,它甚至会完全破坏我的系统。我的屏幕冻结,我必须手动重置计算机。检查您的显卡驱动程序。我也有同样的问题,在我的案例中安装了最新的linux nvidia驱动程序(nvidia-390),因为我有GTX 970
在Ubuntu 18.10上将我的nvidia驱动程序更新为
nvidia-390
后,我遇到了同样的问题。我删除了AVD,重新启动电脑并重新创建了AVD。这些步骤解决了这个问题。我在Ubuntu 18.04上遇到了这个问题,并通过完全执行以下操作修复了它:
ubuntu驱动程序设备
sudoubuntu驱动程序自动安装
- 更新了我的环境(在我的情况下,通过
)以使用.zshrc
,而不是$ANDROID\u SDK\u ROOT
,这会导致$ANDROID\u HOME
- 根据,将“新”仿真器位置(
)放在“旧”位置($ANDROID\u SDK\u ROOT/emulator/
)之前的我的路径中$ANDROID\u SDK\u ROOT/tools/
t statvfs()路径:没有这样的文件或目录与之相关?我不记得旧版本仿真器的目录布局是什么。玩strace时,我发现消息是关于.android/avd/.avd/snapshots/default_foot下缺少ram.img。请尝试使用软件图形运行仿真器。这对我很有帮助。我遇到了与你类似的问题,但我认为你描述的是一个更严重的问题。我正在运行Manjaro linux,我刚刚接受了提供的模拟器升级到28.0.20版。升级后,emulator因分段错误而不断崩溃。切换到GL软件使我能够启动模拟器。一旦进入,在设置中有一些配置,允许您返回到硬件OpenGL,我可能已经做了一些其他的事情,比如冷启动和重新启动计算机,但它又神奇地工作了。这个问题感觉像是设置迁移问题和模拟器代码升级