Skip to content Skip to sidebar Skip to footer

"error Parsing Xml: Xml Declaration Not Well-formed" [android]

I'm getting the titled error in my AndroidManifest.xml file. The error is on the line below the < / manifest>.

Solution 1:

Close your manifest tag. Add the >

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

Solution 2:

Try this:

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

Post a Comment for ""error Parsing Xml: Xml Declaration Not Well-formed" [android]"