Android Emulator UI在方向改变时中断 [英] Android Emulator UI breaks on orientation changed

查看:44
本文介绍了Android Emulator UI在方向改变时中断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前,我的模拟器在Android Studio 4.1上存在一个奇怪的问题.当我尝试更改方向以使其横向时,模拟器的ui完全崩溃了……这是这样的:

Currently I have a strange issue on Android Studio 4.1 with my emulators. When I'm trying to change the orientation to landscape the ui of the emulator is completely breaking... This is how it looks like:

有人知道为什么会这样吗?我将AVD设置中的仿真器性能更改为软件",之后,它不会发生,但是非常慢.

Has anyone an idea why this is happening? I changed the emulator performance in the AVD settings to "Software" after that it does not happen but it is very slow.

推荐答案

正如已经指出的,将仿真器图形选项设置为软件".可以作为临时解决方案.

As already pointed out, setting emulator graphics options to "Software" helps as a temporary fix.

我想补充一点,如果您无法更改"AVD配置"中的设置(在我的情况下,图形是自动的,该字段为只读),则可以手动执行此操作:

I would like to add that if you can't change the settings in the AVD Configuration (in my case graphics were automatic, the field was readonly), you can do that manually:

  1. 在AVD Manager上,右键单击所需的设备,然后在磁盘上显示"
  2. 寻找设备的config.ini并打开它
  3. 更改"hw.gpu.mode = auto"到"hw.gpu.mode =软件"

这对我有用.希望它可以帮助其他人避免头痛.

This worked for me. Hope it helps someone else to avoid headaches.

这篇关于Android Emulator UI在方向改变时中断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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