模拟器未在Android Studio上运行
我试图通过Android Studio运行模拟器,但它并未启动。模拟器未在Android Studio上运行
我的Android工作室(版本23棉花糖),与
minSdkVersion 21
targetSdkVersion 23
配置当我在仿真(Nexus 5X保护API 23的Android 6.0),我收到以下错误运行我的应用程序:
Error while waiting for device: The emulator process for AVD Nexus_5X_API_23 was killed.
请问有人可以帮我吗?
如果你看一看的4: Run
日志,它说:
emulator: ERROR: Unfortunately, there's an incompatibility between HAXM hypervisor and VirtualBox 4.3.30+ which doesn't allow multiple hypervisors to co-exist. It is being actively worked on; you can find out more about the issue at http://b.android.com/197915 (Android) and https://www.virtualbox.org/ticket/14294 (VirtualBox)
在我的情况下,有运行VirtualBox的码头工人实例,一旦我停止了它,仿真器开始工作。
如果您正在运行Windows操作系统,请检查显卡驱动程序是否已安装并且工作正常。由于仿真器需要良好和/或适当的图形配置。如果未安装,请尝试安装图形驱动程序,然后再次运行仿真程序。
希望这个工程!,这对我有效。
在我的情况下,docker/dlite正在运行,一旦我停下来,模拟器开始工作。
docker stop $(docker ps -a -q)
dlite stop
或者通过右上角的菜单栏项退出Docker for mac。
请注意,您可能需要重新启动Android Studio。
我可以给一个建议......你有没有尝试过使用Genymotion模拟器?我发现Android模拟器是一个巨大的内存和能量(我的Macbook Pro笔记本电脑无法在Android模拟器运行时充满电并且我插入了笔记本电脑)资源。 –
您是否尝试过在真实设备上运行您的应用并确认它有效?您是否曾尝试过在计算机上运行其他模拟器? – buczek
语法修复。 – Prune