【发布时间】:2021-09-01 14:43:14
【问题描述】:
这是我的AndroidManifest.xml 文件,我收到了<uses-permission> 和<application> 的两个多重根错误,我似乎不知道为什么。谁能帮忙解决这个问题?
<?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.codepath.rkpandey.flixster" />
<uses-permission
xmlns:tools="http://schemas.android.com/tools"
android:name="android.permission.INTERNET"
tools:ignore="WrongManifestParent" />
<application
android:allowBackup="true"
android:fullBackupContent="@xml/backup_descriptor"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Flixster">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</application>
【问题讨论】:
-
错字。从此行中删除
/:package="com.codepath.rkpandey.flixster" />。确保你在文件的最后也有一个结束</manifest>标记。