错误 AndroidManifest.xml 不存在或具有不正确的根标记

The*_*Vic 5 android android-manifest android-studio

我是使用 Android Studio 开发 android 应用程序的新手,在尝试运行我的应用程序时遇到了这个错误

错误:AndroidManifest.xml 不存在或根标记不正确

我发现我的 AndroidManifest.xml 文件中有一些奇怪的字符

在此处输入图片说明

有人可以在这里帮我..谢谢

Far*_*Haq 2

不知何故,你的 AndroidManifest 被损坏了。AndroidManifest 应包含根应用程序详细信息和其他项目设置,如下所示。请通过创建新项目重试。

<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=".MainActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>
Run Code Online (Sandbox Code Playgroud)