mvallim / emv-qrcode

Java Based EMV QR Code Generator and Parser (MPM, CPM)
https://mvallim.github.io/emv-qrcode/
Apache License 2.0
98 stars 48 forks source link

java.lang.NoClassDefFoundError when decoding MerchantPresentedModeDecoder #50

Open ZakariaJawas opened 1 year ago

ZakariaJawas commented 1 year ago

Describe the bug In some devices LG for example I got this error java.lang.NoClassDefFoundError: com.emv.qrcode.decoder.mpm.MerchantPresentedModeDecoder$$ExternalSyntheticLambda9 at DecoderMpm.decode(qrString, MerchantPresentedMode::class.java)

To Reproduce This is the string i'm trying to decode 00020101021127140001101056896328130009780780754520448295802YE59020160020161051111164450002ar0119محمد فؤاد محمد شايف0212امانة لعاصمة53038866304DE06

Smartphone (please complete the following information):

Additional context Part of the stack trace


at com.emv.qrcode.decoder.mpm.MerchantPresentedModeDecoder.<clinit>(MerchantPresentedModeDecoder.java:29)
at java.lang.reflect.Constructor.newInstance(Native Method)
at com.emv.qrcode.decoder.mpm.DecoderMpm.decode(DecoderMpm.java:49)```

Update

I guess the problem with Android 6 and earlier