Debugging Android RuntimeException - Before my code even executes -
i'm not new java new android platform. i'm finding 1 of platforms shortcomings meaningful feedback on runtime crashes. fine in user code breakpoints apply, have crash on first run preventing project starting, , can't see way track down. can shed light?
dalvikvm[localhost:8626] thread [<1> main] (suspended (exception runtimeexception)) activitythread.performlaunchactivity(activitythread$activityrecord, intent) line: 2585 activitythread.handlelaunchactivity(activitythread$activityrecord, intent) line: 2679 activitythread.access$2300(activitythread, activitythread$activityrecord, intent) line: 125 activitythread$h.handlemessage(message) line: 2033 activitythread$h(handler).dispatchmessage(message) line: 99 looper.loop() line: 123 activitythread.main(string[]) line: 4627 method.invokenative(object, object[], class, class[], class, int, boolean) line: not available [native method] method.invoke(object, object...) line: 521 zygoteinit$methodandargscaller.run() line: 868 zygoteinit.main(string[]) line: 626 nativestart.main(string[]) line: not available [native method] thread [<6> binder thread #2] (running) thread [<5> binder thread #1] (running)
same on emulator , device.
i've seen reports of crashes these being caused inflation of invalid xml have removed xml's , resources project, 1 one, , same error remains! there tricks or instrumentation can apply try , more meaningful error message? thanks.
i found answer gleaning more information in these situations. page has useful information: http://www.mail-archive.com/android-developers@googlegroups.com/msg79386.html
by opening 'variables' tab in debug section of eclipse's views see there value named 'e' presumably 'exception' value 'classnotfoundexception'. clicking on saw fuller description saying class couldn't found. main activity, i'd renamed on late night before, , forgotten about. facepalm hope info helps someone!
Comments
Post a Comment