tags:

views:

1761

answers:

7

Hello;

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

A: 

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.

Brad Hein
+15  A: 

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

ZelluX
tried this also and it worked. thanks
Peter Delaney
Worked for me too, thanks!
stealthcopter
great solution. saved me hours of headaches.
isolatedIterator
Same as above. Thanks!
paulio
Ditto. thanks a lot!
Anders Sundnes Løvlie
A: 

i had the same problem and project->clean did the trick. Thanks :)

Divya
This should be a comment, not an answer.
Techboy
+1  A: 

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.

Gabor
A: 

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.

will
A: 

Project -> Clean solved it ! Thanks

haxpor
This should be a comment, not an answer.
Techboy
A: 

Thank you!!! You saved my day!

ce526
This should be a comment, not an answer.
Techboy
Users with a reputation of one cannot yet comment.
Brian