预期为"android:screenOrientation ="未指定"或“"fullSensor""为此活动 [英] Expecting 'android:screenOrientation="unspecified"' or '"fullSensor"' for this activity

查看:1173
本文介绍了预期为"android:screenOrientation ="未指定"或“"fullSensor""为此活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Android Studio升级到了3.6.0.现在,我的Manifest.xml文件中出现以下错误.

I upgraded my Android Studio to 3.6.0. Now, I get the following error in my Manifest.xml file.

期望'android:screenOrientation ="unspecified"'或'"fullSensor"' 为此活动,以便用户可以在任何情况下使用该应用程序 方向,并在Chrome操作系统设备上提供出色的体验.

Expecting 'android:screenOrientation="unspecified"' or '"fullSensor"' for this activity so the user can use the application in any orientation and provide a great experience on Chrome OS devices.

我应该将其转换为"fullSensor"吗? 我该如何摆脱这个问题?

Should I convert it to "fullSensor"? How can I get rid of this problem?

我的活动方向是人像.我想在活动中继续使用纵向.

Orientation of my activities is portrait. I want to keep using portrait orientation in my activities.

推荐答案

这是一种警告,提醒开发人员对于大屏幕设备,限制方向是不好的. 但是,如果您的应用程序仅支持纵向模式,则可以通过执行以下操作来禁用此警告.

This is a kind of warning to inform developers that for big screen devices it is not good to restrict the orientation. However if your application only supports portrait mode then this warning can be disabled by doing the following.

Mac: Android Studio->首选项"

Mac: Android Studio -> Preferences

Windows:文件->设置

然后:

  1. 搜索"chrome"
  2. 取消选中活动已锁定到某个方向"
  3. 应用并确定.

取消选中步骤屏幕截图

这篇关于预期为"android:screenOrientation ="未指定"或“"fullSensor""为此活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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