0

I have the following AndroidManifest file...

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

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

    <application
        android:icon="@drawable/images"
        android:label="@string/app_name" android:debuggable="true">
        <activity android:name=".HomeView" 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=".DroidzActivity">
        </activity>
        <activity android:name=".GameOver">
        </activity>

    </application>

</manifest>

I am getting the following compilation error, which I can't seem to figure out...

    [2012-04-17 08:39:23 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Parser exception for /home/joshua/workspace/Droidz/AndroidManifest.xml: Element type "activity" must be followed by either attribute specifications, ">" or "/>".

Could anyone please suggest the cause of the error.

4

3 回答 3

1

Still unsure as to what happened, but it appears the formatting was not the problem. After restarting eclipse, the issues went away. Sorry to have bothered you all, thank you for your help though.

于 2012-04-18T13:09:08.760 回答
0

Your manifest file should end with

</manifest>
于 2012-04-17T13:50:54.523 回答
0

When something like this problem happens in Eclipse, it can help to refresh and rebuild the project. Eclipse from version 3.7 can handle auto-refresh https://stackoverflow.com/a/6049245.

于 2013-05-02T20:12:03.857 回答