Android studio emulator white screen

前端 未结 5 2226
独厮守ぢ
独厮守ぢ 2021-02-10 04:19

I\'ve Installed the newest version of Android studio, including the newest version of HAXM, ndk, sdk and whatever other related dependencies it installs. Intel Virtualization bi

相关标签:
5条回答
  • 2021-02-10 05:04

    The same problem can happen to the lightning fast Microsoft Android Emulators utilizing Hyper-V that work on both Intel and AMD CPU based PCs. The solution is in the same line as the accepted answer. For those who use Microsoft Android Emulators and land here by searching "android emulator white screen", here is the screenshot showing how to solve the problem by changing the default hw.gpu.mode from the default "auto" to "mesa":

    0 讨论(0)
  • 2021-02-10 05:07

    In case someone finds this useful, you can set software acceleration as below and this solved the issue for me on Mac OS. (OP also mentions it works with software acceleration)

    1. Tools > AVD Manager
    2. Select virtual device
    3. Click on Edit (pencil icon for me)
    4. Click "Show Advanced Settings"
    5. Look for Emulated Performance - Graphics
    6. Select "Software" option
    0 讨论(0)
  • 2021-02-10 05:11

    Well I have discovered that in order to solve the issue you have to go to the sidebar menu click More>Settings>OpenGL ES Renderer and(in my case) set it to Angle(D3D11) or Angle(D3D9) or Swiftshader. After that you simply restart the emulator and the issue should be gone.

    For me Desktop native OpenGL and Autodetect based on host(which probably sets it to the first thing) don't work and leave you with a white screen.

    0 讨论(0)
  • 2021-02-10 05:13

    Current version of the emulator (27.1.3) doesn't work for me. The emulator just shows a white screen. Even playing with the gpu in the .ini configuration didn't work. Once I downgraded to 26.1.4 (https://dl.google.com/android/repository/emulator-darwin-4266726.zip) the emulator started working again.

    0 讨论(0)
  • 2021-02-10 05:16

    It seems that the Android Emulator is somehow conflicting with the NVidia Web driver on Mac OS. I had the latest NVidia Web driver (378.05.05.25f04) installed and I was having this same problem - the white screen whenever I used Desktop Native rendering (or left it at the automatic default which selects that as well).

    I tried the Swift Shader as well, it works but the performance is abysmal!

    On a hunch, I switched back to the OS X Default Graphic Driver from the Nvidia Pref Pane in Apple menu settings, and the Desktop Native driver is now working great after the computer restart!

    0 讨论(0)
提交回复
热议问题