Help!!! Unknown Error - java.lang.NullPointerException :: Android Packaging Problem

by Chris » Thu, 21 Oct 2010 06:34:25 GMT

Sponsored Links
 I'm getting this crazy error on multiple projects, even when I revert
back to prior versions that compiled just fine.

Unknown Error - java.lang.NullPointerException Android Packaging
Path is blank
Location is Unknown.

I've tried:

1 - Project -> Clean -> All
2 - Deleting .metadata folder
3 - reimporting projects into the eclipse
4 - reverting my projects back to prior working versions using git

Please please please help... I just can't get anything to compile now,
and I've searched for solutions here and on eclipse forums.


Help!!! Unknown Error - java.lang.NullPointerException :: Android Packaging Problem

by Bret Foreman » Thu, 21 Oct 2010 06:52:30 GMT

 This sounds more like a problem with your dev system than with your
code. Try re-installing Eclipse and the SDK. Export all your Eclipse
preferences first, of course (File->Export->General->Preferences).


Sponsored Links

Help!!! Unknown Error - java.lang.NullPointerException :: Android Packaging Problem

by Chris » Fri, 22 Oct 2010 00:05:32 GMT

 Finally figured it out.

==Short version

My .project file was corrupted and I needed to manually update linked
library locations.  Since the .project file was pointing to the wrong
place, a null pointer exception was thrown.

==Long Version

For some reason, the GUI and project settings were disconnected form
one another.  When I went into project settings, my libraries looked
to be correctly linked and properly found in the build path.

However, when going into the .project file using a text editor, there
were straggler linked libraries.  (ie multiple versions of the same
library, pointing to two different locations)

Most likely user error on my part, but something to keep in mind if
you get the "unknown packaging error".

Thanks for the suggestion Bret... I did reinstall everything, but the
problem persisted, as per the fix above.


Other Threads

1. GPS/LocationManager does not give a fix in my app

Location listener never gets called or it gets called with bad values?
Have you tried the network provider? Does that work?

TreKing - Chicago transit tracking app for Android-powered devices


2. Detect Keyboard Opening

im trying to port android to a nokia n900 device andim wonderign what
file the code to detect the keyboard being opened (slide out) is in
and if it can be modified to detect this via a gpio since the n900
sets a gpio when keyboard is opened. using donut r2


3. Asking for small QA on "HTC Desire" phone (Italy locale)

4. OOT: Mari bergabung di Official Page Google Indonesia

5. Can single framebuffer be split in two screens - emulator

6. Lost in Android

7. 1.5 billion people can not use Android to read and write in their native language