Android Studio模拟器白屏 [英] Android studio emulator white screen

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

问题描述

我已经安装了最新版本的Android Studio,包括最新版本的HAXM,ndk,sdk以及它安装的任何其他相关依赖项.英特尔虚拟化BIOS设置太糟糕了,我不记得启用了它的名称,并且在虚拟盒子等方面也没有遇到任何麻烦.

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

因此,如果有人知道修复程序,那就很好了.

谢谢

解决方案

好吧,我发现为了解决该问题,您必须转到侧边栏菜单,然后单击更多 设置> OpenGL ES Renderer ,并将其设置为 Angle(D3D11) Angle(D3D9) Swiftshader .之后,您只需重新启动模拟器即可解决问题.

对我来说,台式机本机OpenGL 基于主机的自动检测(可能将其设置为第一件事)不起作用,并让您出现白屏./p>

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.

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.

Thanks

解决方案

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.

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

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