“错误解析XML:XML声明格式不正确"; [安卓]

问题描述:

我的AndroidManifest.xml文件中出现标题错误.

I'm getting the titled error in my AndroidManifest.xml file.

错误在<下方的行上./清单>.

The error is on the line below the < / manifest>.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.contactpicker"
    <uses-permission android:name="android.permission.READ_CONTACTS"/>
    <application android:icon="@drawable/ic_launcher">
     <activity android:name=".ContactPicker" android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.PICK"></action>
                <category android:name="android.intent.category.DEFAULT"></category>
                <data android:path="contacts" android:scheme="content"></data>
            </intent-filter>
        </activity>
    <activity android:name="com.example.contactpicker.ContactPickerTester"
              android:label="@string/title_activity_contact_picker_tester" >     
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER"  />
            </intent-filter>
        </activity>
    </application>

</manifest>

关闭清单标签.添加>

Close your manifest tag. Add the >

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.contactpicker">