Reputation: 11
I'm very confused. I can not find the XML error in this block, suggestions?
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="my.firsttestapp"
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"
android:theme="@style/AppTheme" >
<activity
android:name="my.firsttestapp.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="my.firsttestapp.DisplayMessageActivity"
android:label="@string/title_activity_display_message"
android:parentActivityName="com.example.myfirstapp.MainActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.example.myfirstapp.MainActivity" />
</activity>
<activity
android:name="com.example.myfirstapp.DisplayMessageActivity"
android:label="@string/title_activity_display_message"
android:parentActivityName="com.example.myfirstapp.MainActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.example.myfirstapp.MainActivity" />
</activity>
</application>
The error cross is on the closing activity mark. Error: "Error parsing XML: not well-formed (invalid token) Link to tutorial: http://developer.android.com/training/basics/firstapp/starting-activity.html (at the Add to the Manifest part of the page) (edit, added more of the code and added the link)
Upvotes: 0
Views: 601
Reputation: 11
Found the answer,
"Your Project is not refresh Properly thats why error is show
In eclipse Project-->Clean Location
then Just clean & build your project."
Dixit Patel Error in AndroidManifest.xml while making "My First App" from developer.android.com Basically the same, worked for me!
Upvotes: 1
Reputation: 403
It seems that you forgot </manifest>
at the end of your manifest that's probably why it doesn't work.
Upvotes: 0