升级到Android Studio 2.0后,我无法在Android模拟器中更改屏幕方向 [英] After upgrading to Android Studio 2.0, I cannot change the screen orientation in the Android emulator

查看:114
本文介绍了升级到Android Studio 2.0后,我无法在Android模拟器中更改屏幕方向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我将Android Studio从1.5.x升级到了2.0稳定版本.

Recently I upgraded the Android Studio from 1.5.x to 2.0 stable version.

在升级之前,我使用 Ctrl + F12 Ctrl + F11 键盘快捷键,但现在在2.0版本中不起作用.我还尝试了 Numpad 7 Numpad 9 (数字键盘处于打开或关闭状态),但没有成功.

Before the upgrade I was changing the screen orientation with the Ctrl + F12 or Ctrl + F11 keyboard shortcut but now it doesn't work in the 2.0 version. I also tried Numpad 7 and Numpad 9 (with the numpad on or off) but without success.

是的,我知道新的Android AVD界面包含一个带有各种功能快捷键的侧边栏,其中包括Rotate left (Ctrl + Left)Rotate right (Ctrl + Right)图标,但它只会旋转设备而不是模式(如下图所示):

Yes, I'm aware that the new Android AVD interface contains a sidebar with various functional shortcuts which includes Rotate left (Ctrl + Left) and Rotate right (Ctrl + Right) icons but it rotate only the the device not the mode (Landscape or Portrait) as it showed in the image below:

如何在新的Android Studio 2.0中将仿真器的屏幕方向更改为横向或纵向?

PS 请不要将我的问题标记为重复,我尝试了如何旋转Android模拟器的显示?,因为这些问题对早期版本的Android Studio有效.

P.S. Please do not mark my question as duplicate, I tried all the solutions from How do I change screen orientation in the Android emulator? and How to rotate the Android emulator display? as those questions were valid for earlier versions of Android Studio.

P.P.S..我在Samsung R530笔记本电脑上使用Ubuntu 14.04操作系统.

P.P.S. I'm using Ubuntu 14.04 operating system on a Samsung R530 notebook.

推荐答案

将操作系统从 Ubuntu 14.04 升级到 Ubuntu 16.04 后,错误消失了,并且Rotate left (Ctrl + Left)Rotate right (Ctrl Right)可以正常工作.

After upgrading my operating system from Ubuntu 14.04 to Ubuntu 16.04 the bug disappeared and the Rotate left (Ctrl + Left) and Rotate right (Ctrl Right) works fine.

这篇关于升级到Android Studio 2.0后,我无法在Android模拟器中更改屏幕方向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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