ubuntu 16.04.1 LTS crashes when starting android emulator

ぐ巨炮叔叔 提交于 2021-02-18 04:58:45

问题


I have tried both the AVD on Android studio and Genymotion emulator. My ubuntu 16.04.1 crashes (freezes) when starting the android emulator. My computer has 16G memory. This happens after I installed the latest updates for my ubuntu in 19 Sept 2016.


回答1:


I had same problem.

Select in menu "Emulated performance" the "software", no automatical or hardvare




回答2:


I had the same problem. You are probably using nouveau display driver instead of NVIDIA driver. You can check your driver with:

lshw -c video

Although this could be fixed with changing emulated performance from "automatic" to "software", you'll end up with a really slow android environment. Moreover, you cannot change this from "automatic" to "software" for the play store version of devices.

So the best solution, is to change your driver to Nvidia. (you could do it in "sofware and update" -> "additional driver" then reboot and the problem should be solved.

note: In some cases changing nouveau driver to Nvidia might freeze ubuntu at boot (before login screen) for some users. In this case, you can use recovery mode in grub to prompt a root shell and in the /etc/gdm3/custom.conf , uncomment "WaylandEnable=false" and Nvidia driver should work properly with gdm3.




回答3:


If it is "Play Store" image (such as pixel 2), this option is dimmed. If on command line, use "emulator -gpu off"



来源:https://stackoverflow.com/questions/39584765/ubuntu-16-04-1-lts-crashes-when-starting-android-emulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!