Peter Delaney
Peter Delaney

Reputation: 5398

Android Eclipse Error "Android Packaging Problem"

I am getting an error in my Problems tab for my Android Project in Eclipse. The error is "Android Packaging Problem" with an Unknown location.

Unknown Error NullPointerException

I cannot determine what this problem is. My project was working a few hours ago. The only change I made was to add a public interface ITrackDao to my project and implement it. There are no errors associated with this.

I am not even sure where to begin to look. I cannot launch the application. Can someone give me an idea on what area I can look into? Thanks Peter

Upvotes: 17

Views: 18365

Answers (9)

user4448157
user4448157

Reputation:

I had the same problem. I tried the clean up option but for some reason it still did not work. I solved this problem using this step Project name ->Android tool ->Add support Library

Upvotes: 0

gabor
gabor

Reputation: 4359

I had a similar error - but instead of a NullPointerException it was an InvalidoperationException from somewhere in Eclipse.

A Project > Clean solved that one too.

Upvotes: 3

ARNeto
ARNeto

Reputation: 451

I worked with a SVN project and one installation have eclipse Galileo. The other have updated to Helios. In Helios I found this problem and clean is no solution. After Galileo reinstall (all installations equals now), I deleted workspace and a new checkout resolved the problem.

Upvotes: 0

jsp
jsp

Reputation: 2646

I ran into the same problem coz of my blackberry sdk installation. I think it messed up my eclipse 3.6.2 install . I just reinstalled eclipse and it all worked like a charm

Upvotes: 0

Patrick Keating
Patrick Keating

Reputation: 11

I had this same error in an imported project and cleaning was not helpful, however by deleting the library references in the .project and .classpath eclipse files, and then relinking things and cleaning, I was able to get things building again.

Upvotes: 1

ericharlow
ericharlow

Reputation: 2065

Cleaning the project was not enough for me. I had to first remove a <classpathentry/> that specified the interface from the .classpath file and a <linkedResources>'s <link> to the same interface in the .project file before cleaning the project would remove the error.

Upvotes: 2

will
will

Reputation: 11

I had the same problem. I tried the clean up option but for some reason it still did not work. I copied my project and pasted it as a new project and that cleared it up for me.

Upvotes: 1

ZelluX
ZelluX

Reputation: 72775

I was confronted with this problem too, and I solve it by clicking Menu->Project->Clean. The error goes away after cleaning the project.

Upvotes: 39

Brad Hein
Brad Hein

Reputation: 11057

First I should recommend that you start using subversion or other versioning on your apps, that way you can pinpoint every change between each iteration. If your project was in subversion you could compare with previous and then pinpoint what changed.

With that said, I would also check through any recently changed layout XML, make a change and hit save and make sure you don't get errors. I've experienced strange null pointer/errors in Eclipse at times when my layout was fine, and by making a change and saving, the errors go away.

Upvotes: 0

Related Questions