Android Emulator 不会从 Windows 10 上的 Android Studio 启动



最近(安装Android Studio 2.3.x之后,我现在为2.3.1(模拟器不会在Android Studio中启动。

i can 如果在SDK Tools Directory中,请从命令行运行模拟器。

如果我从SDK Tools目录以外的目录中运行模拟器,我会收到这样的错误:

[12236]:ERROR:./android/qt/qt_setup.cpp:28:Qt library not found at ..emulatorlib64qtlib
Could not launch '..emulator/qemu/windows-x86_64/qemu-system-i386.exe': No such file or directory

工具和平台工具目录在我的道路上。Android_home设置正确。首先,我尝试从Android的SDK Manager重新安装模拟器(现在独立SDK Manager消失了,我无法在那里做(。我手动下载了SDK并安装了旧SDK的上限。然后,我尝试将其放置在一个新的目录中,更改Android_home并更新我的路径,并更改Android Studio(以及所有local.properties文件(中的设置。接下来,我完全卸载了Android Studio和SDK,重新启动并重新安装了Android Studio。仍然有同样的问题。

我已经在这里的问题中尝试了建议:Android Studio上的模拟器在SDK工具更新为25.3.1之后,通过复制各种目录(然后将各种目录复制为sym-links sym-links(上的工作方式有所不同。Windows(。

我在这里尝试了所有建议:https://issuetracker.google.com/issues/37137213。

我已经重新安装了haxm,但是我认为这不是一个模拟器问题,因为当我从工具目录中的命令提示符启动它时,它确实有效。

有什么建议吗?

详细信息:
Windows 10(构建1703(
Android Studio 2.3.1

我已经以这种方式解决了问题:

在命令行中,从包含AVD映像的文件夹中,我使用switch -gpu swift swiftshader 。P>

在我的情况下,在命令行中,从文件夹 C:<Users>.androidavd中确切地说是

<android sdk folder>emulatoremulator.exe @Nexus_4_Lollipop -gpu swiftshader

其中 nexus_4_lollipop 是AVD映像的名称。

在虚拟设备配置中,将图形设置从"自动"更改为"自动" - GLES 2.0"。我认为它与" -gpu"命令行选项相同,但不是所有可用的模式:https://developer.android.com/studio/run/emulator-acceleration.html

最新更新