元素类型"应用程序"必须后跟属性规范,">"或"/>"#2

Sam*_*ugh 1 android

我一直收到一个错误,上面写着"元素类型"应用程序"必须跟随属性规范",">"或"/>"."

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

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

    <application android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
Run Code Online (Sandbox Code Playgroud)

我在这下面得到错误:

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

</manifest>
Run Code Online (Sandbox Code Playgroud)

Iva*_*ric 5

这是正确的表单,看看你是否没有关闭某些标签.

<application android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    ...>
    <activity ...>
        <intent-filter>    
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>
Run Code Online (Sandbox Code Playgroud)