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
Home:

java.lang.ExceptionInInitializerError
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1429)
at android.app.Instrumentation.newApplication(Instrumentation.java:
957)
at android.app.Instrumentation.newApplication(Instrumentation.java:
942)
at android.app.ActivityThread
$PackageInfo.makeApplication(ActivityThread.java:644)
at
android.app.ActivityThread.handleBindApplication(ActivityThread.java:
4232)
at android.app.ActivityThread.access$3000(ActivityThread.java:125)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:
2071)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NoSuchFieldError:
at com.xxx.yyy.Application.<clinit>(Application.java:30)
... 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?

Markus

--



Crash report: NoSuchFieldError

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


 




First Google hit:
 http://download.oracle.com/javase/1.4.2/docs/api/java/lang/ExceptionInInitializerError.html 

"...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 < http://sites.google.com/site/rezmobileapps/treking> ; - Chicago
transit tracking app for Android-powered devices

--


Sponsored Links


Other Threads

1. popup menus woes

hi,

i registred [registerForContextMenu()] a child of some Dialog.

i perform long click,
onCreateContextMenu is called and populated with some MenuItems.

then populated popup menu is shown, and then i press some item
but onContextItemSelected is NOT called.

when i registered some other View (not being Dialog's child) the same
code works without any problems.

so can i add pooup menu for some Dialog's child?

skink
--~--~---------~--~----~------------~-------~--~----~

2. IDEA: Android Applications I'd most like to see

These are the apps I'd like to see for the Android - if they were
available, they'd make it a killer product:
*Facebook (similar to the iPhone version, but I would like to chat as
well)

*Windows Media Player (or VLC or something like it, for audio/video
playlist creation, shuffle, streaming audio; ability to fill in
missing id3 tag info via web, and use Zune media maps);
Audio formats: MP3, WMA, AC3, AAC, FLAC, OGG Vorbis, OGG FLAC, Apple
Lossless, True Audio, Monkey Audio, MusePack, WavPack, G.726, and PCM
(minimum: mp3, wma, wav)
Video formats: AVI, WMV, ASF, MP4, MKV, OGM, DAT, MTV, DivX, XviD,
MPEG-4, WMV 9/8/7, H.264, M-JPEG, and MPEG 1 (minimum: avi, mp4, wmv,
mpeg, divx/xvid)
-basically, a more fully featured media player.  The interface is nice
on the included player, but with a few extra features, it'd be an
awesome player.

*Wikipedia Mobile - search English, German, etc. wikipedias in mobile
format
*Powerpoint Viewer - view MS Office 2007 Powerpoint files (better yet,
edit)
*Excel Viewer - view/edit MS Excel 2007 files
*Locale Switcher - switch UI to other languages and date/time format,
currency to other locales
*MAME 32 Emulator - play classic arcade games on the go
*Freecell, Solitaire, Spider Solitaire - card games
*E-Book Reader - view & bookmark *.lit files
*Adobe Acrobat Viewer - view PDF files
*Dictionary/Translation - look up words, spell-check, translate into
other languages.  I used dict.leo.org for Eng<->German, having found
it the most accurate.  Even better if the user can add his own
translations for new languages.
*

--~--~---------~--~----~------------~-------~--~----~

3. Switches in Aapt tool

4. OnApplicationStart ?

5. on press event

6. How firmware update thro OTA works?

7. USB socket