Cannot start Android device emulator on Linux

谁说我不能喝 提交于 2019-12-13 16:03:15

问题


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.

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


回答1:


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.




回答2:


Delete in your Android SDK the directory "libstdc++" in the directory "emulator/lib64". The emulator will use the system libraries now.




回答3:


Have you tried running AVD Manager from a terminal?

Control the Emulator from the Command Line

Here you will probably have more details of the errors that make the emulator not work fine.



来源:https://stackoverflow.com/questions/42728353/cannot-start-android-device-emulator-on-linux

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