Crash report: NoSuchFieldError

by Markus » Thu, 21 Oct 2010 15:41:58 GMT

Sponsored Links
 Hi all,

Yesterday I noticed this awkward crash report on the Android Market

at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(
at android.os.Handler.dispatchMessage(
at android.os.Looper.loop(
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NoSuchFieldError:
... 16 more

The device was a Nexus One and apparently this happened twice (but
only to one user).

Any idea what might be the cause of this?



Crash report: NoSuchFieldError

by TreKing » Thu, 21 Oct 2010 22:53:18 GMT


First Google hit: 

"...thrown to indicate that an exception occurred during evaluation of a
static initializer or the initializer for a static variable."

So look at how your statics are being initialize. Or, if it's only happening
to this one person, ignore it. That's what I do :-P

TreKing <> ; - Chicago
transit tracking app for Android-powered devices


Sponsored Links

Other Threads

1. Is it possible to make an alias resource for a whole translation?

Dear clever Android coders,

I'm in the process of making one of my applications more localization aware, and basically I know how I *CAN* make it work, but it seems somewhat suboptimal. What I'm after is really to make an alias from one values-xxx/strings.xml to another values-yyy/strings.xml - doing this for drawables and layouts is no problem, but for "simple" values it doesn't work the same as far as I can tell. (Yes, I've googled these groups too, but didn't come up with anything useful.) For my scenario I need to have a base language (values/strings.xml) that works for many places, but a handful of the others need to be the same (both actual languages and mccXXX depending on the device and the SIM etc) in several groups (per country basically). Obviously I can simply symlink (though it may confuse Eclipse) or even copy the files, but they are reasonably large (a few 100 strings each) so I'd prefer to store them only once in the APK if possible. To my understanding there is fair optimization going on at runtime, but I still suspect copied files will also eat memory at that stage compared to a true alias. I suspect going for just mccXXX would work for 90+% of the users, but I'd really want to do better than that - especially since I consider mccXXX somewhat of a hack while waiting for "true local" phones to arrive to most smaller countries. Advice appreciated / Jonas --

2. Attach debugger to a process running in the emulator via eclipse.


Is there some way to attach de{*filter*} to a process running in the
emulator via eclipse?

I am trying to debug the following scenario.

1.) Kill a process via pressing the red terminate button from Debug
perspective in eclipse.
2.) Relaunch the app in emulator.

When the app is relaunched in step 2.), I want to step through the
I am unable to figure out a way to attach de{*filter*} to a process
running in the emulator.

I would really appreciate any pointers regarding this.

Thanks a lot,



3. LK2.08 for original firmware

4. Android market hiding apps with bluetooth permissions from Android 1.5 and 1.6

5. resolution visibilty on Android Market

6. Easy and fast XML Parser?

7. Android for newbie