mvallim / emv-qrcode

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

Error in app release version #26

Closed aishahismail92 closed 3 years ago

aishahismail92 commented 3 years ago

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

Smartphone (please complete the following information):

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
        }
    }
aishahismail92 commented 3 years ago

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.