VerifyError - the rejected Verifier class

I am developing for 2.2 ( minSdkVersion=8) and all of a sudden I get this error:

arbitrarily rejecting large method (regs=75 count=28584)
rejected Lcom/Demo/Loyalty/SelectType;.onClick (Landroid/view/View;)V
Verifier rejected class Lcom/Demo/Loyalty/SelectType;
Class init failed in newInstance call (Lcom/Demo/Loyalty/SelectType;)


java.lang.VerifyError: com.Demo.Loyalty.SelectType
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1429)
at android.app.Instrumentation.newActivity(Instrumentation.java:1022)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
at android.app.ActivityThread.access$2300(ActivityThread.java:125)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
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:858)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
at dalvik.system.NativeStart.main(Native Method)

Until now, it worked fine.

Note: the SelectTypeclass contains about 16,000 lines of code, but this is not so important.

I search a lot online and from the answers, I did the following:

  • Clear project
  • Reset adb
  • Restart emulator / device / eclipse
  • Checked that the third-party library field is marked in the build path

But I still get this error.

Any help was appreciated.

+5
source share
1 answer

The steps you described are probably not going to help.

, . , , Oracle Java VM. : . , , :

, : https://groups.google.com/forum/?fromgroups=#!topic/android-developers/4qNoIdBHYFc

:

( * ) 2 ^ 21. (...) .

: http://www.mentby.com/Group/android-developers/verifyerror-arbitrarily-rejecting-large-method.html , :

, Dalvik "" . , , -, . , / "" ( ).

, , , , (, onClick()?) . , , , .

+4

All Articles