ThexXTURBOXx / dex2jar

Tools to work with android .dex and java .class files
Apache License 2.0
234 stars 59 forks source link

Error: org.objectweb.asm.MethodTooLargeException: Method too large #16

Closed AsjadSiddiqui closed 2 years ago

AsjadSiddiqui commented 3 years ago

summary.txt

Got this error when decompiling APK

ThexXTURBOXx commented 3 years ago

This error is all over the place and is due to Java's limitation that methods can only have a 65536 byte long bodies. There is no good way to fix this besides splitting methods, which I haven't got working yet. For example, msplit provides such functionality, but doesn't work in dex2jar from what I can tell (I don't really know why, though... Maybe I am doing something wrong?)

AsjadSiddiqui commented 3 years ago

Thanks for the explanation

ThexXTURBOXx commented 2 years ago

Forgot to tell you btw. In December (I think), @pxb1988 introduced decoding and encoding of large arrays which could solve this issue in some cases. Maybe, it also works for you now?

ThexXTURBOXx commented 2 years ago

Btw: I most likely fixed this using a workaround :)