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

查看:38
本文介绍了无法在 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 (Tools->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天全站免登陆