mvallim/emv-qrcode

Error in app release version

aishahismail92 opened this issue · 1 comments

Describe the bug
I tested in debug version, I'm able to scan QR code and retrieved the values. But I tested in release version I received this error after I scan the QR code.

Error that got is
java.lang.NoSuchMethodException:e.d.a.b.a.v0.[class java.lang.String]

To Reproduce
Steps to reproduce the behavior:

  1. Run an app in release version.
  2. Scan QR and do DecoderMpm.decode(qrdata, MerchantPresentedMode.class)
  3. Error exception

Expected behavior
No exception error after called this DecoderMpm.decode(qrdata, MerchantPresentedMode.class)

Desktop (please complete the following information):

  • OS: Android
  • Version 7+

Smartphone (please complete the following information):

  • Device: Huawei Mate 20
  • OS: Android
  • Version 10

Additional context
gradle implementation:
implementation('com.github.mvallim:emv-qrcode:0.1.1') { exclude group: 'org.aspectj' }

buildTypes {
     release {
         debuggable false
         minifyEnabled true
         shrinkResources false
         proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
         signingConfig signingConfigs.release
     }
 }

After a few times being retry to fixing the bug, I've decided to create a new project and luckily no more issues found for release version. Thanks.