首页 > 解决方案 > 我的 AndroidManifest.xml 充满了错误,为什么?

问题描述

我正在尝试在 Android Studio 中制作我的第一个应用程序。我试图在我的 AndroidManifest.xml 上写一些不起作用的东西,所以我再次删除了它。但现在我的 AndroidManifest.xml 充满了错误,我无法运行我的应用程序。我不知道出了什么问题。我对编码知之甚少。我希望有一个人可以帮助我。我的 AndroidManifest.xml 看起来像这样:

    <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.example.bobbysmedicin">

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".AboutActivity"></activity>
        <activity
            android:name=".MainActivity"
            android:screenOrientation="landscape"/>
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

标签: javaandroidandroid-studio

解决方案


在此处输入图像描述

删除它(空格或制表符),然后尝试运行您的应用


推荐阅读