开发者

application crashes due to Fatal Exception in android?

I am developing an application in android in which i have 175 images, I have implemented zoom in & zoom out on button click.

My functionality is working for 174 images but when implement it for 175 th image it crashes my application.

The log cat report is below:

07-04 15:39:27.118: ERROR/AndroidRuntime(6025): FATAL EXCEPTION: main
07-04 15:39:27.118: ERROR/AndroidRuntime(6025): java.lang.VerifyError: different.pictures.Jaap$2
07-04 15:39:27.118: ERROR/AndroidRuntime(6025):     at different.pictures.Jaap.onCreate(Jaap.java:1046)
07-04 15:39:27.118: ERROR/AndroidRuntime(6025):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
07-04 15:39:27.118: ERROR/AndroidRuntime(6025):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
07-04 15:39:27.118: ERROR/AndroidRuntime(6025):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
07-04 15:39:27.118: ERROR/AndroidRuntime(6025):     at android.app.ActivityThread.access$2300(ActivityThread.java:125)
07-04 15:39:27.118: ERROR/AndroidRuntime(6025):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
07-04 15:39:27.118: ERROR/AndroidRuntime(6025):     at android.os.Handler.dispatchMessage(Handler.java:99)
07-04 15:39:27.118: ERROR/AndroidRuntime(6025):     at android.os.Looper.loop(Looper.java:123)
07-04 15:39:27.118: ERROR/AndroidRuntime(6025):     at android.app.ActivityThread.main(ActivityThread.java:4627)
07-04 15:39:27.118: ERROR/AndroidRuntime(6025):     at java.lang.reflect.Method.invokeNative(Native Method)
07-04 15:39:27.118: ERROR/AndroidRuntime(6025):     at java.lang.reflect.Method.invoke(Method.java:521)
07-04 15:39:27.118: ERROR/AndroidRuntime(6025):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
07-04 15:39:27.118: ERROR/AndroidRuntime(6025):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
07-04 15:39:27.118: ERROR/AndroidRuntime(6025):     at dalv开发者_Python百科ik.system.NativeStart.main(Native Method)


In your Jaap class you have several inner non-static classes. When you instantiate object of one of them, verifier tries to convert that inner class's methods to machine code. And it fails to do that.

To fix this you need to carefully examine logs prior to this exception. There should be some warnings about what was wrong with different.pictures.Jaap$2 class.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜