Eugen Martynov Eugen Martynov - 1 year ago 254
Java Question

Xiaomi HM 1SW java.lang.NoSuchMethodError

I see a strange crash with next line:

java.lang.NoSuchMethodError: org.apache.commons.lang3.builder.EqualsBuilder.a

Yes, I use proguard to obfuscate but I don't see same crash on other devices that I have with me. As well I unpacked apk and see that this class with this method is present.

I have assumption:

  1. Someone is playing with apk

  2. Something weird with device - particularly with ClassLoader

Unfortunately I can not verify my assumptions since I don't have physical access to this device.

Maybe you have experienced such error or you have additional information that brings a light on the problem?

Answer Source

claim: I do not know the source of the problem.

I've encounter this issue and worked around it by telling ProGuard not to obfuscate Apache Commons lib.

-keep class org.apache.commons.lang3.** { *; }

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download