在AndroidManifest中:应为android:screenOrientation=“未指定”

安卓工作室3.6

我希望我的应用程序始终处于纵向模式。因此,在我的AndroidMainfest.xml中:

<活动
android:name=“.activity.SplashActivity”
android:screenOrientation=“纵向”>
<意向过滤器>
<操作android:name=“android.intent.action.MAIN”/>
<类别android:name=“android.intent.category.LAUNCHER”/>
&lt/意向过滤器>
&lt/活动>

我运行应用程序并在纵向模式下显示SplashActivity。美好的
但编辑器显示以下错误:

预期android:screenOrientation=“未指定”

为什么?

在清单标记中(就在xmlns:android=”下面)http://schemas.android.com/apk/res/android“),将

xmlns:tools=”http://schemas.android.com/tools"

然后在应用程序标记内,放置

工具:ignore=“LockedOrientationActivity”

发表评论