mvallim/emv-qrcode

java.lang.NoClassDefFoundError when decoding MerchantPresentedModeDecoder

ZakariaJawas opened this issue · 0 comments

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):

  • Device: [LG Stylo 2]
  • OS: [6.0.1, 5.0.2]

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