简体   繁体   English

奇怪的横向错误(无论什么android API)

[英]Strange landscape orientation error (whatever android api)

When I rotate android emulator (with Ctrl+F11 on Kubuntu), the emulator is indeed rotated, but not the inside screen. 当我旋转android仿真器(在Kubuntu上使用Ctrl + F11)时,仿真器确实已旋转,但内部屏幕未旋转。 I've deleted my avds several times (and rebuild new instances), with different skins/configurations, I've even edited the skin file (hardware-qemu.ini) ... without success. 我已经使用不同的外观/配置多次删除了avds(并重建了新实例),甚至还编辑了外观文件(hardware-qemu.ini)……没有成功。

Has someone run into a similar problem ? 有人遇到过类似的问题吗? (I knew that some users had only this problem with Android kitkat images, but for me it is with all android api !!!) ? (我知道有些用户只有Android kitkat图像有此问题,但对我来说,所有Android api都有这个问题!!)?

Android sdk tools : 24.0.2 Android SDK工具:24.0.2

Extra : Android Studio 1.0.2 附加:Android Studio 1.0.2

You can try following options;some of them have worked in most cases (depending on Windows vs Linux machine used for running Emulator). 您可以尝试以下选项;其中一些选项在大多数情况下都有效(取决于用于运行Emulator的Windows vs Linux计算机)。

  1. Disable the "Hardware keyboard present" check-box in the "Edit Android Virtual Device (AVD)" window. 在“编辑Android虚拟设备(AVD)”窗口中,禁用“存在硬件键盘”复选框。

2.Try opening "Camera" app on emulator, this was one if the tips to force emulator to re-orient. 2.尝试在模拟器上打开“ Camera”应用程序,这是强迫模拟器重新定向的提示之一。

3.Set "accelerometer" Property of Emulator to true. 3.将仿真器的“加速计”属性设置为true。 (Open AVD Manager -> GoTo 'Device Definitions' tab -> Select an existing AVD -> Clone) (打开AVD Manager->转到“设备定义”标签->选择现有的AVD->克隆)

  1. Install the free application "Set Orientation". 安装免费的应用程序“设置方向”。 Install the apk into emulator using "adb install" Link: https://play.google.com/store/apps/details?id=com.googlecode.eyesfree.setorientation 使用“ adb install”链接将apk安装到模拟器中: https : //play.google.com/store/apps/details? id =com.googlecode.eyesfree.setorientation

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM