Android studio 当我按下run按钮时,Android Studio显示错误

Android studio 当我按下run按钮时,Android Studio显示错误,android-studio,Android Studio,我一直在关注YouTube上关于2D游戏开发的教程,当我按下run按钮进行检查时,它显示: 运行“应用程序”时出错:未找到默认活动 另外,如果我使用横向而不是fullsensor,则在AndroidMainfest.xml上显示错误: 使用意图过滤器: <activity android:name=".MainActivity" android:screenOrientation="landscape" android:theme="@style/AppTheme.

我一直在关注YouTube上关于2D游戏开发的教程,当我按下run按钮进行检查时,它显示:

运行“应用程序”时出错:未找到默认活动

另外,如果我使用横向而不是fullsensor,则在AndroidMainfest.xml上显示错误:


使用
意图过滤器

<activity
    android:name=".MainActivity"
    android:screenOrientation="landscape"
    android:theme="@style/AppTheme.NoActionBar"
    >
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>

使用
意图过滤器

<activity
    android:name=".MainActivity"
    android:screenOrientation="landscape"
    android:theme="@style/AppTheme.NoActionBar"
    >
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>

它在横向显示了什么错误?@CoolMind它表示期待android:screenOrientation=“unspecified”或“fullsensor”用于此活动,以便用户可以在任何方向使用该应用程序并提供出色的体验Chorme OS设备您可以删除
android:screenOrientation=“横向”
没问题。@CoolMind抱歉!!你是什么意思?我的意思是
screenOrientation
是一个可选属性。如果愿意,您可以删除整个字符串,也可以保留它。我想,这不是一个错误,而是一个警告。它在景观上显示了什么错误?@CoolMind it表示期待android:screenOrientation=“unspecified”或“fullsensor”用于此活动,以便用户可以在任何方向上使用该应用程序,并提供出色的体验Chorme OS设备您可以删除
android:screenOrientation=“横向”
。@CoolMind对不起!!你是什么意思?我的意思是
screenOrientation
是一个可选属性。你可以删除整个字符串
android:screenOrientation=“横向”
,或者保留它,如果你愿意的话。我想,这不是一个错误,而是一个警告。