我正试图通过AVD使Android Studio和关联的模拟器在Archlinux下工作。
我刚刚安装了android-studio,android-sdk以及Android Studio所需的所有依赖项。当我尝试启动新创建的模拟器(无特定设置)时,这是我收到的错误消息:
url
我已经重新安装了两次。我还检查了this topic,但没有成功。我不了解这些消息中的大多数,因此我有点迷茫。我尝试使用以下命令从命令行启动模拟器
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)
,它给我同样的结果。
我很高兴对可能出现的问题有所了解。
我要运行的模拟器类型用于WearOS。作为测试,我尝试创建一个Android Nexus。当图形设置为“软件”时,它将起作用。不幸的是,我无法为WearOS设备更改此选项。因此,它一直崩溃。有时,它甚至完全崩溃了我的系统。屏幕冻结,必须手动重置计算机。
答案 0 :(得分:1)
检查您的视频卡驱动程序。由于我有GTX 970,因此我遇到了同样的问题,并安装了最新的Linux nvidia驱动程序(nvidia-390)。
https://www.mvps.net/docs/install-nvidia-drivers-ubuntu-18-04-lts-bionic-beaver-linux/
答案 1 :(得分:0)
在Ubuntu 18.10上将我的nvidia驱动程序更新为nvidia-390
之后,我遇到了同样的问题。我删除了AVD,重新启动了PC,然后重新创建了AVD。这个步骤解决了这个问题。
答案 2 :(得分:0)
我在Ubuntu 18.04上遇到了这个问题,并通过以下完全解决了这个问题:
ubuntu-drivers devices
sudo ubuntu-drivers autoinstall
您可能可以跳过第2步,而只是创建一个新的AVD来使用,但是我的旧模拟器没有任何特殊之处,因此我将它们全部淘汰了,因为有时模拟器问题会影响所有先前创建的模拟器。因此,与尝试记住那些过时的产品相比,我觉得制作新鲜的产品会更好。
在重新启动之前,我还采取了以下相关步骤,这些步骤可能无法直接解决问题,但仍然值得一提:
.zshrc
更新了我的环境,以使用$ANDROID_SDK_ROOT
代替has been deprecated的$ANDROID_HOME
。$ANDROID_SDK_ROOT/emulator/
)比在“旧”位置($ANDROID_SDK_ROOT/tools/
)中早。