机器人:screenOrientation =" sensorLandscape"显示使用最小的SDK作为2.2项目错误 [英] android:screenOrientation="sensorLandscape" showing error for a project with the minimum SDK as 2.2

查看:1080
本文介绍了机器人:screenOrientation =" sensorLandscape"显示使用最小的SDK作为2.2项目错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图设置的android:screenOrientation =sensorLandscape我的活动之一,使景观左,右景观

I'm trying to set android:screenOrientation="sensorLandscape" for one of my activities, to enable landscape left and landscape right.

在我的项目属性,我给自己定的项目构建目标至Android 2.2。在我的清单,最低SDK版本设置为2.2的Andr​​oid,以及(API 8级):
在我的清单中的行是:

In my project properties, I've set the project build target to Android 2.2. In my manifest, the minimum SDK version is set to Android 2.2 as well (API level 8): The line in my manifest is:

<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="10"/>

根据文档中,sensorLandscape属性应该是提供给我,不过,当我尝试设置它,我得到的错误是错误:错误:字符串类型不允许(在screenOrientation与价值sensorLandscape)

我失去了一些额外的设置的地方?

Am I missing some extra setting somewhere?

推荐答案

sensorLandscape:。横向方向,但可以正常或基于设备传感器反向景观的在API级别9 ,所以我觉得你的minSdkVersion应 9,而不是8 ...

"sensorLandscape":Landscape orientation, but can be either normal or reverse landscape based on the device sensor.Added in API level 9. so i think your minsdkVersion should be 9 instead of 8...

这篇关于机器人:screenOrientation =&QUOT; sensorLandscape&QUOT;显示使用最小的SDK作为2.2项目错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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