问题
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:
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.
回答1:
As already pointed out, setting emulator graphics options to "Software" helps as a temporary fix.
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:
- on AVD Manager, right-click on the desired device, then "Show on Disk"
- look for the config.ini of the device and open it
- change "hw.gpu.mode = auto" to "hw.gpu.mode = software"
This worked for me. Hope it helps someone else to avoid headaches.
来源:https://stackoverflow.com/questions/64857741/android-emulator-ui-breaks-on-orientation-changed