Add Comment
|
Related Links
|
TrackBack
Possible Cause of java.lang.VerifyErrorToday I encountered a "Force Close" dialog while improving my "Memory Watch" Android app. The error message shown in "Dalvik Debug Monitor" says, "java.lang.VerifyError: cynosurex.lang.EnhancedBoolean". And that was it. That was quite vague. EnhancedBoolean class came out of the "CI Class Package" and it a fairly simple class. After a bit of code reading, it occurred to me that EnhancedBoolean class calls upon EnhancedInteger class. I had forgotten to include EnhancedInteger class in the Android app package. Once I have included EnhancedInteger in the package, the "Memory Watcher" app ran without any problems. Chieh Cheng Found another case of java.lang.VerifyError today. I found this problem on Android 1.5 (API Level 3). If you call an non-existing method, it throws a java.lang.VerifyError. In my example, I called ActivityManager.getMemoryClass (). On Android 2.1 (API Level 7), java.lang.NoSuchMethodError would be thrown--for example, call Display.getRotation ()--which seems to make more sense. Unfortunately, unlike the java.lang.NoSuchMethodError, the java.lang.VerifyError is non-catchable at run-time. At this time, I found no way around this problem. Looks like Android 1.5 verifies all the methods prior to letting your software run. Chieh Cheng
Add Comment
|
Related Links
|
TrackBack
Did your message disappear? Read the Forums FAQ. Add CommentSpam Control | * indicates required field TrackBackTrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites. Send Ping | TrackBack URL | Spam Control No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here. Messages, files, and images copyright by respective owners. |
Products
|
Services
45 Users Online
|
Copyright © 1996 - 2024. All Rights Reserved. |