无法在Linux上启动Android设备模拟器 [英] Cannot start Android device emulator on Linux

查看:126
本文介绍了无法在Linux上启动Android设备模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾经在模拟器上启动和调试Android Studio应用程序而没有问题.但是,最近我一直无法启动模拟器.更新SDK和系统映像无法解决问题.更新qemu-system- *也无济于事.

I used to launch and debug Android Studio apps on emulator without problems. However, recently I am constantly failing to start the emulator. Updating the SDK and system images did not solve the problem. Updating qemu-system-* did not help either.

系统信息:Linux Fedora 25(x86_64),Android Studio 2.2.3

System info: Linux Fedora 25 (x86_64), Android Studio 2.2.3

推荐答案

事实证明,问题出在Linux上同样的旧NVidia驱动程序问题.为了解决崩溃问题,我从Android Studio(工具-> Android-> AVD Manager)打开了AVD Manager,然后打开了虚拟设备设置.然后,在仿真性能"部分的图形"旁边,我选择了软件",而不是自动"或硬件".这样就可以达到目的,并且与默认情况下模拟性能"假定使用硬件"时相比,仿真器看起来似乎要慢得多,但它不会造成更多崩溃.以下屏幕快照有望为解决方案提供更好的提示.

It turned out that the problem was due to the same old NVidia driver problems with Linux. To fix the crash, I opened AVD Manager from Android Studio (Tools->Android->AVD Manager), and then opened the virtual device settings. Then in the Emulated Performance section, next to Graphics, I selected Software rather than Automatic or Hardware. This does the trick and no more crashes occur for the emulator, though it seems considerably slower, than it used to be when Emulated Performance presumably used Hardware by default. The following screenshots will hopefully give a better hint on the solution.

这篇关于无法在Linux上启动Android设备模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆