簡體   English   中英

我的Android xml文件中出現AAPt錯誤:標記 <category> 屬性包含無效字符

[英]I have AAPt error on my Android xml file: Tag <category> attribute has invalid character

我有一個Android xml文件,其中包含啟動畫面和另一個活動,以便在此情況下使用ınytent時將另一個活動傳遞給另一個,我創建了默認類別和啟動器類別,但是eclipse給了我以下錯誤:Tag <category>屬性包含無效字符(實際上沒有無效字符)這是我的xml代碼(粗體字是發生錯誤的行)

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.tesbih"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="18" />

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name="com.tesbih.TesbihMainActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" /> 
            **<category android:name="android.intent.category.DEFAULT "** />
        </intent-filter>
    </activity>


    <activity
        android:name="com.tesbih.Splash"
        android:label="@string/app_name" >
         <intent-filter>
            <action android:name="android.intent.action.MAIN" />

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


</application>

</manifest>

這也是我的日志。描述資源路徑位置類型本地變量計時器的值未使用Splash.java / Tesbih / src / com / tesbih第15行Java問題標記屬性名稱包含無效字符''。 AndroidManifest.xml / Tesbih第21行Android AAPT問題

這個問題的原因是捆綁軟件有一個錯誤。 如果您保存了所有內容並退出,則當您再次打開時,應在對android名稱進行任何更改后進入xml文件,您可以保存並在打開eclipse和android清單時再次退出,否則錯誤符號將丟失

暫無
暫無

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

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