我试图让Android Studio和相关的模拟器通过AVD在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从命令行启动仿真器,得到的结果与此相同。
我很乐意得到一些关于问题可能是什么的想法。
编辑
以下是安装的元素,以防相关:


EDIT2
我尝试运行的仿真器类型是针对WearOS的。作为测试,我尝试创建一个Android Nexus one。当图形设置为'Software‘时,它可以正常工作。不幸的是,我不能为WearOS设备更改此选项。因此,它一直在崩溃。有时,它甚至会使我的系统完全崩溃。我的屏幕冻结了,我必须手动重置我的电脑。
发布于 2019-01-26 00:06:12
检查您的显卡驱动程序。我也有同样的问题,我安装了最新的linux nvidia驱动程序(nvidia-390),因为我有一台GTX 970。
https://www.mvps.net/docs/install-nvidia-drivers-ubuntu-18-04-lts-bionic-beaver-linux/
发布于 2019-03-09 01:45:55
在Ubuntu18.10上将我的nvidia驱动程序更新为nvidia-390后,我也遇到了同样的问题。我删除了AVD,重启了PC并重新创建了AVD。这些步骤解决了问题。
发布于 2019-03-26 02:56:57
我在Ubuntu 18.04上遇到了这个问题,并通过执行以下操作修复了它:
更新NVidia驱动程序
ubuntu-drivers devices
sudo ubuntu-drivers autoinstall删除我的AVDs
您可能会跳过步骤2,只创建一个新的AVD来使用,但我的旧仿真器没有包含任何特殊的东西,所以我只是把它们都吹走了,因为有时候仿真器问题会影响以前创建的所有仿真器。因此,我觉得制作新的比试图记住哪些是过时的要好。
在重启之前,我还采取了以下相关步骤,这些步骤可能没有直接解决问题,但仍然值得一提:
根据每个this post.,
.zshrc ),以使用$ANDROID_SDK_ROOT而不是$ANDROID_HOME,后者在我的路径中has been deprecated.$ANDROID_SDK_ROOT/emulator/)早于‘旧’位置($ANDROID_SDK_ROOT/tools/)https://stackoverflow.com/questions/53305032
复制相似问题