簡體   English   中英

格式錯誤的清單-標簽 <activity> 缺少必需的屬性名稱

[英]Malformed Manifest - Tag <activity> missing required attribute name

嘗試運行我的應用程序時,我不斷收到“標記” 活動缺少必需的屬性名稱,“標記” 操作缺少所需的屬性名稱以及“標記類別”缺少所需的屬性名稱的錯誤。 清單文件如下:

<?xml version="1.0" encoding="utf-8"?>
<manifest
    xmlns:android="http://schemas.android.caom/apk/res/android"
    package="com.cobyllamarco.morsoul"
    android:installLocation="preferExternal"
    android:versionCode="1"
    android:versionName="1.0" >
    <uses-sdk
        android:minSdkVersion="3"
        android:targetSdkVersion="17" />
    <application
        android:name=".MorsoulDemo0"
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="Morsoul Demo"
        android:theme="@style/AppTheme" >
        <activity
            android:name=".MorsoulDemo0"
            android:label="Morsoul Demo0"
            android:screenOrientation="landscape" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest>

我進行了梳理以將所有軟件包設置為小寫,然后通過XML驗證器在線發送(恢復為有效)。 請幫助...

您的應用程序和活動標簽似乎具有相同的屬性'name = .MorsoulDemo0'。 僅將Application子類作為應用程序標簽的名稱屬性,將Activity作為活動標簽的名稱屬性

您在名稱空間中有錯字。

xmlns:android="http://schemas.android.caom/apk/res/android"

應該有com ,而不是caom

我試圖做這種錯字並得到相同的結果:“缺少'名稱'屬性”。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM