Android Emulator Stuck With Black Screen

风格不统一 提交于 2019-12-21 23:22:35

问题


I'm just new with Android Development, and running the default blank project. I have Android Studio 2.1.2. The problem is the emulator stuck with the black screen although HAXM works well: "HAX is working and emulator runs in fast virt mode" Most solutions suggest to uncheck "use host gpu" in AVD Manager, yet it seems this feature no longer appear in the new version of Android Studio. I run macOS El Capitan.


回答1:


After an update to Android Studio this weekend (maybe Gradle?), the AVD emulator (Mac) suddenly started showing a black screen when I ran my installed app APK. Sometimes it showed a blue screen. Sometimes the emulator even showed a page of installed app icons. Sometimes upside down. Sometimes upside down and reversed! That smelled like a graphics problem.

Thanks to audio in my app, I realized I could still activate buttons in my app by clicking on a specific location of the black screen. Definitely a graphics problem.

Based on other ideas that I read, I edited my AVD device config in the Emulated Performance section, to change Graphics from "Automatic" to "Software - GLES 2.0".

It worked for me on the emulators for Nexus 9 and Pixel XL on API 25.

This solution does not work on Play Store-enabled devices because the Graphics setting can't be changed. For example the Nexus 5X API 25.

Environment: Android Studio 3.0.1, Gradle 4.1




回答2:


The reason why I got stuck with black screen in the emulator is that I needed to update my Android SDK Tools. Hope this could help someone get the same issue.




回答3:


Increase the RAM size to 2.5GB in Advance settings of Emulator. Black Screen will be gone. It worked for me




回答4:


I believe the emulator was updated in studio 2.1.3, can you update and see if you have the exact problem?

download is here, 2nd set of links:

http://tools.android.com/




回答5:


Selecting CPU/ABI with Intel Atom(x86_64) (when creat a emulator or editing a emulator) worked for me.



来源:https://stackoverflow.com/questions/39305466/android-emulator-stuck-with-black-screen

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