安卓工作室模拟器白屏 [英] Android studio emulator white screen

查看:92
本文介绍了安卓工作室模拟器白屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了最新版本的 Android Studio,包括最新版本的 HAXM、ndk、sdk 以及它安装的任何其他相关依赖项.英特尔虚拟化 bios 设置的东西我不记得启用的名称,我在虚拟机等方面没有问题.

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 bios setting thingy I can't remember the name of is enabled and I have no trouble in virtual box and such.

我创建了一个空的 Activity 并尝试在手机上对其进行测试,效果很好.然后我在模拟器上试了一下,硬件加速的时候出现了问题.它只是打开一个白色的窗口.android studio 显示 0 个错误并认为它正确运行了应用程序.我的显卡是 gtx 1060 6gb.当它是软件加速时,它可以工作但速度太慢,我宁愿在岩石上使用凿子来绘制应用程序使用情况.

I created an empty activity and tried testing it on the phone, works perfectly. Then I tried it on the emulator and there is a problem when it is hardware accelerated. It just opens a white window. The android studio displays 0 errors and thinks it ran the app properly. The graphics card I have is a gtx 1060 6gb. When it is software accelerated it works but is so slow I would rather use a chisel on a rock to draw the application usage.

所以如果有人知道修复它会很好.

So if someone knows a fix it would be nice.

谢谢

推荐答案

嗯,我发现为了解决这个问题,你必须去侧边栏菜单点击更多>设置>OpenGL ES 渲染器 和(在我的例子中)将其设置为 Angle(D3D11)Angle(D3D9)>Swiftshader.之后,您只需重新启动模拟器,问题就会消失.

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.

对我来说,桌面原生 OpenGL基于主机的自动检测(可能将其设置为第一件事)不起作用,让您看到白屏.

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.

这篇关于安卓工作室模拟器白屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆