Android Emulator broken when rotating display

守給你的承諾、 提交于 2021-01-26 05:39:12

问题


I am facing an issue with the Android emulator. When the emulator boots up everything is fine, regardless the default display orientation. When I press one of the buttons to change the display orientation, the emulator window rotates but, the content is completely messed up. See the pic below. The same happens with all the AVDs I have created and with different android images. I've already reinstalled/updated the emulator from package manager. Any idea about why this is happening?

The work environment is:

  • Mac OS Big Sur,
  • Android Studio v4.1.1
  • Android emulator v30.2.6

Thank you for your help.


回答1:


This was a bug in the Google Android Emulator version 30.2.x.

It was fixed in version 30.3.5 (approximately 8 January 2021). Apply the update like this:

  • Stop or Force Quit all the running AVD emulators
  • Android Studio ➔ Tools ➔ SDK Manager ➔ SDK Tools ➔ Android Emulator
  • The status should say "Update Available"
  • Click the Checkbox so that it will change from a horizontal line to a checkmark, and so that the download symbol appears on the left.

  • Click the Apply or OK button
  • It should download version 30.3.5 or higher, for "Android Emulator".
  • After the apgrade is applied, relaunch your emulators.



回答2:


Try running the emulator inside Android Studio. Go to settings-tools-emulator and check the box there to run the emulator inside Android Studio. When you rotate it after it should rotate faster than in the AVD's standalone application, and not break the display. This should fix the broken display problem, without making a new AVD. Make sure you have updated to the most recent version of Android Studio first, v4.1.



来源:https://stackoverflow.com/questions/65186579/android-emulator-broken-when-rotating-display

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!