Android仿真器在Ubuntu 18.04上因SIGSEGV崩溃 [英] Android Emulator crashes with SIGSEGV on Ubuntu 18.04
问题描述
Android Studio版本:
Android Studio version:
Android Studio 3.1.2
Android Studio 3.1.2
内部版本#AI-173.4720617(建于2018年4月14日)
Build #AI-173.4720617, built on April 14, 2018
它是从Ubuntu的快照存储中安装的.
我使用 1.在Ubuntu上设置Android Studio·uw-it-aca/spacescout-android Wiki .
我尝试了通过Ubuntu发行版解决了Android Studio AVD问题-建议使用cialu.net ,但现在lib64
文件夹中不包含libstdc++
.我能找到的最接近的是libc++.so.1
,我尝试使用
It's installed from Ubuntu's snap store.
I installed the kvm using 1. Setting Up Android Studio on Ubuntu · uw-it-aca/spacescout-android Wiki.
I tried what Solve Android Studio AVD issue with Ubuntu distros - cialu.net suggested, but now the lib64
folder doesn't contain libstdc++
. The closest I could find is libc++.so.1
, and I tried to install it using
sudo apt install libc++1
并以类似方式链接它,但它只是卡住了我的电脑. 我还查看了 Android仿真器分段错误的答案所链接的线程,但它们看起来很旧..
and link it similarly, but it just got my pc stuck. I also looked at the threads linked by Android emulator segmentation fault's answer but they look old..
我还尝试了如何解决Android Studio模拟器:Ubuntu系统上的libGL错误-cialu.net ,但没有帮助.
I also tried How to solve Android Studio Emulator: libGL error on Ubuntu systems - cialu.net, but it didn't help.
我尝试使用ubuntu-drivers devices
的输出:
I tried Android Emulator is not starting in Ubuntu's answer, using How to install the NVIDIA drivers on Ubuntu 18.04 Bionic Beaver Linux - LinuxConfig.org to install the Nvidia drivers, but still not working. This is the output from ubuntu-drivers devices
:
== /sys/devices/pci0000:00/0000:00:03.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001401sv00001043sd0000854Dbc03sc00i00
vendor : NVIDIA Corporation
model : GM206 [GeForce GTX 960]
driver : nvidia-driver-390 - distro non-free recommended
driver : xserver-xorg-video-nouveau - distro free builtin
唯一有效的方法是 Android虚拟设备管理器因双重释放或损坏"的答案而崩溃,但是我要硬件加速.
The only thing that worked is Android virtual device manager crashes with "double free or corruption"'s answer, but I want the hardware acceleration..
你能帮我吗?
推荐答案
经过几天的努力,我终于使它工作了.对我来说,问题在于,即使操作系统报告已安装Nvidia驱动程序,情况也并非如此.检查"lshw -c video"显示"nouveau"正在使用中,而不管我是如何安装Nvidia的-命令行或使用软件和更新" GUI.
After days of struggle I finally got it to work. The problem for me was that even if the OS was reporting Nvidia drivers as installed that was not the case. Checking with "lshw -c video" was showing that "nouveau" was in use regardless of how I was installing Nvidia ones - command line or using "Software & Updates" GUI.
我所做的是:
- 安装Ubuntu 18.04,但不选择安装用于图形的第三方软件
- 禁用从BIOS的安全启动.这是阻止安装Nvidia驱动程序的关键部分.
- 使用"sudo apt install nvidia-driver-390"从命令行安装驱动程序
这篇关于Android仿真器在Ubuntu 18.04上因SIGSEGV崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!