Sometimes while developing in Eclipse you will notice that the Android Project will be flagged with the red “x” but none of your source files or resources will have errors. If you look in the “Problems” tab you will notice that the project is flagged with an “Android Package Problem” type and the “Location” will be Unknown.
To fix this, just do:
Project->Clean
This will rebuild the project from scratch.
Eclipse Project is Flagged with an “Android Packaging Problem” Error
I have the same issue, actually 3 projects were working correctly until I downloaded some updtes (i believe the android 3.0) and then the projects were markd with the red x but there resources have no errors just a warning. I tried cleaning the project but the error does not go away. Any other suggestion or feedback that you can provide?
Thanks,
K
@Karim,
Make sure that Eclipse did not automatically insert “import android.R” on top of your files. If it did, delete it. That should resolve your issue.
Here is some more info on this:
http://source.android.com/source/using-eclipse.html