It may be a Linux error rather than a programming error, but I'm not sure. AndroidManifest.xml is somewhat Greek for me. Nevertheless, my program compiled and launched the current state in it completely normal, it is even on the market. About a month has passed since I opened the source in Eclipse, and today, when I opened it, he refused to compile and display the following errors:
[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.
where XXX is the name of the package (and the directory in which it is located). I confirmed that the file works fine in a text editor and even updated it in Eclipse. Nothing.
I updated ADT ... maybe the criteria for AndroidManifest.xml have changed?
My AndroidManifest.xml:
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.XXX.XXX" android:versionCode="2" android:versionName="1.0.1" > <application android:icon="@drawable/icon" android:label="@string/app_name"> <activity android:name=".XXX" android:label="@string/app_name" android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".FindLocationsActivity" android:screenOrientation="portrait" > </activity> <activity android:name=".DeveloperActivity" android:screenOrientation="portrait" > </activity> <activity android:name=".LegalActivity" android:screenOrientation="portrait" > </activity> <activity android:name=".AboutActivity" android:screenOrientation="portrait" > </activity> <activity android:name=".SettingsAndAboutActivity" android:screenOrientation="portrait" > </activity> <activity android:name=".ResultsPageActivity" android:screenOrientation="portrait" > </activity> </application> <uses-sdk android:minSdkVersion="1" /> </manifest>
android
Brandon
source share