java.lang.VerifyError

Expecting a stackmap frame at branch target 18 Exception Details: Location: com/test/MainActivity.onCreate(Landroid/os/Bundle;)V @5: aload_0 Reason: Expected stackmap frame at this location. Bytecode: 0x0000000: 125d b800 632a b400 6712 6901 b800 6da7 0x0000010: 000b 5701 1269 01b8 006d 1202 b800 032a 0x0000020: b600 04b6 0005 2a2b b700 062a 1208 b600 0x0000030: 092a 2a12 0bb6 000c c000 0db5 000e 2ab4 0x0000040: 000e bb00 0f59 2ab7 0010 b600 11b8 0072 0x0000050: b1 Exception Handler Table: bci [5, 26] => handler: 18

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web274

Stack trace

  • java.lang.VerifyError: Expecting a stackmap frame at branch target 18 Exception Details: Location: com/test/MainActivity.onCreate(Landroid/os/Bundle;)V @5: aload_0 Reason: Expected stackmap frame at this location. Bytecode: 0x0000000: 125d b800 632a b400 6712 6901 b800 6da7 0x0000010: 000b 5701 1269 01b8 006d 1202 b800 032a 0x0000020: b600 04b6 0005 2a2b b700 062a 1208 b600 0x0000030: 092a 2a12 0bb6 000c c000 0db5 000e 2ab4 0x0000040: 000e bb00 0f59 2ab7 0010 b600 11b8 0072 0x0000050: b1 Exception Handler Table: bci [5, 26] => handler: 18 at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) at java.lang.Class.getConstructor0(Class.java:3075) at java.lang.Class.getDeclaredConstructor(Class.java:2178) at org.robolectric.util.ReflectionHelpers.callConstructor(ReflectionHelpers.java:283) at org.robolectric.Robolectric.buildActivity(Robolectric.java:92) at org.robolectric.Robolectric.buildActivity(Robolectric.java:88) at org.robolectric.Robolectric.setupActivity(Robolectric.java:96) at com.shutterstock.consumer.MainActivityTest.setup(MainActivityTest.java:22) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24) at org.robolectric.RobolectricTestRunner$2.evaluate(RobolectricTestRunner.java:248) at org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:174) at org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:63) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.robolectric.RobolectricTestRunner$1.evaluate(RobolectricTestRunner.java:140) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:27) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
Sebastian PappertSebastian Pappert
Once,
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
16 more bugmates