Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can';t启动Android AVD模拟器_Android_Android Studio_Android Emulator_Avd_Archlinux - Fatal编程技术网

Can';t启动Android AVD模拟器

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

我正试图通过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 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上遇到了这个问题,并通过完全执行以下操作修复了它:

  • 通过以下方式更新NVidia驱动程序:
  • ubuntu驱动程序设备
    sudoubuntu驱动程序自动安装
    
  • 删除我的AVD
  • 重新启动
  • 创建新的AVD
  • 您可能可以跳过第2步,创建一个新的AVD来使用,但是我的旧模拟器没有任何特殊的内容,所以我就把它们都扔掉了,因为有时候模拟器问题会影响以前创建的所有模拟器。所以我觉得做新的比试着记住那些过时的更好

    在重新启动之前,我还采取了以下相关步骤,这些步骤可能没有直接解决问题,但仍然值得一提:

    • 更新了我的环境(在我的情况下,通过
      .zshrc
      )以使用
      $ANDROID\u SDK\u ROOT
      ,而不是
      $ANDROID\u HOME
      ,这会导致
    • 根据,将“新”仿真器位置(
      $ANDROID\u SDK\u ROOT/emulator/
      )放在“旧”位置(
      $ANDROID\u SDK\u ROOT/tools/
      )之前的我的路径中

    打开更新管理器,检查您是否在语音“SDK工具”下安装了“Android Emulator”,当Android Studio最近更新时,我也遇到了这个问题。通过深入了解emulator是如何运行的,我发现emulator本身位于$HOME/Android/Sdk/emulator中,而图像存储在$HOME/.Android/avd中。可能是
    t statvfs()路径:没有这样的文件或目录与之相关?我不记得旧版本仿真器的目录布局是什么。玩strace时,我发现消息是关于.android/avd/.avd/snapshots/default_foot下缺少ram.img。请尝试使用软件图形运行仿真器。这对我很有帮助。我遇到了与你类似的问题,但我认为你描述的是一个更严重的问题。我正在运行Manjaro linux,我刚刚接受了提供的模拟器升级到28.0.20版。升级后,emulator因分段错误而不断崩溃。切换到GL软件使我能够启动模拟器。一旦进入,在设置中有一些配置,允许您返回到硬件OpenGL,我可能已经做了一些其他的事情,比如冷启动和重新启动计算机,但它又神奇地工作了。这个问题感觉像是设置迁移问题和模拟器代码升级