"AndroidManifest.xml does not declare a Java package" error
<p>This may be more of a Linux bug than a programming error, but I am not sure. The AndroidManifest.xml is somewhat Greek to me. That said, my program has compiled and run before in it's current state perfectly fine, it is even on the Market. Its been around a month since I've opened the source in Eclipse, and today when I opened it, it refused to compile and displays the following errors:</p>

<pre><code>[2010-12-10 10:43:19 - com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Unable to read /media/DATA/code/Android/XXX/AndroidManifest.xml: org.eclipse.core.internal.resources.ResourceException: Resource is out of sync with the file system: '/XXX/AndroidManifest.xml'.

[2010-12-10 10:43:19 - XXX] AndroidManifest.xml does not declare a Java package: Build aborted.
</code></pre>

<p>where XXX is the package name (and directory it is located). I have confirmed that the file is perfectly fine in a text editor, and even refreshed it in Eclipse. Nothing.</p>

<p>I updated the ADT...maybe the criteria for AndroidManifest.xml changed?</p>

<p>My AndroidManifest.xml:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest 
 xmlns:android="http://schemas.android.com/apk/res/android"
 package="com.XXX.XXX"
 android:versionCode="2"
 android:versionName="1.0.1"
 &gt;

 &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;

     &lt;activity 
      android:name=".XXX"
   android:label="@string/app_name"
   android:screenOrientation="portrait"

   android:theme="@android:style/Theme.NoTitleBar"
   &gt;

   &lt;intent-filter&gt;
    &lt;action android:name="android.intent.action.MAIN" /&gt;
    &lt;category android:name="android.intent.category.LAUNCHER" /&gt;

   &lt;/intent-filter&gt;
  &lt;/activity&gt;

  &lt;activity 
   android:name=".FindLocationsActivity"
   android:screenOrientation="portrait"
   &gt;
  &lt;/activity&gt;

  &lt;activity 
   android:name=".DeveloperActivity"
   android:screenOrientation="portrait"
  &gt;
  &lt;/activity&gt;

  &lt;activity 
   android:name=".LegalActivity"
   android:screenOrientation="portrait"
  &gt;
  &lt;/activity&gt;

  &lt;activity 
   android:name=".AboutActivity"
   android:screenOrientation="portrait"
  &gt;
  &lt;/activity&gt;

  &lt;activity 
   android:name=".SettingsAndAboutActivity"
   android:screenOrientation="portrait"
   &gt;
  &lt;/activity&gt;

  &lt;activity
   android:name=".ResultsPageActivity"
   android:screenOrientation="portrait"
   &gt;
  &lt;/activity&gt;

    &lt;/application&gt;
&lt;uses-sdk android:minSdkVersion="1" 
/&gt;

&lt;/manifest&gt; 
</code></pre>
