mvallim/emv-qrcode

java.lang.NoSuchMethodError: No static method decodeHex(Ljava/lang/String;)[B in class Lorg/apache/commons/codec/binary/Hex; or its super classes (declaration of 'org.apache.commons.codec.binary.Hex' appears in /system/framework/org.apache.http.legacy.boot.jar)

piyushyadavNP opened this issue · 0 comments

Describe the bug
java.lang.NoSuchMethodError: No static method decodeHex(Ljava/lang/String;)[B in class Lorg/apache/commons/codec/binary/Hex; or its super classes (declaration of 'org.apache.commons.codec.binary.Hex' appears in /system/framework/org.apache.http.legacy.boot.jar)
at com.emv.qrcode.core.model.cpm.BERTLBinary.toPrimitives(BERTLBinary.java:35)
at com.emv.qrcode.core.model.cpm.BERTLBinary.(BERTLBinary.java:26)

To Reproduce
Steps to reproduce the behavior:

  1. Downgrade API Level to 26

I am getting this error while targeting to android 8 and 8.1