Eclipse Project is Flagged with an “Android Packaging Problem” Error

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.

Friday, January 28th, 2011 Android, Eclipse, Java, Programming

2 Comments to Eclipse Project is Flagged with an “Android Packaging Problem” Error

  1. 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

  2. Karim on June 22nd, 2011
  3. @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

  4. dimitar on June 23rd, 2011

Leave a comment

*

Search

 

Archive

May 2012
M T W T F S S
« Mar    
 123456
78910111213
14151617181920
21222324252627
28293031  

Other