czlucius / code-scanner

An Android app to scan and generate codes(barcodes/QR codes)
GNU Affero General Public License v3.0
39 stars 24 forks source link

[Bug]: ACRA with R8 shrinking causes app to crash #36

Closed czlucius closed 2 years ago

czlucius commented 2 years ago

Steps to reproduce

  1. Build the app with release, so that r8 is on
  2. Open the app

Expected behaviour

App crashes.

Actual behaviour

App functions normally

Device name

Google Pixel 3

Android version/API Level

Android 9

App version

1.8 (alpha)

Device/crash logs

FATAL EXCEPTION: main Process: com.czlucius.scan, PID: 20507 java.lang.RuntimeException: Unable to create application com.czlucius.scan.App: java.lang.NoSuchMethodException: [boolean, class java.lang.String, boolean, class java.lang.String, class java.lang.String, class java.lang.String, int, class e.e.c.f] at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5925) at android.app.ActivityThread.access$1100(ActivityThread.java:200) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6718) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) Caused by: java.lang.NoSuchMethodException: [boolean, class java.lang.String, boolean, class java.lang.String, class java.lang.String, class java.lang.String, int, class e.e.c.f] at java.lang.Class.getConstructor0(Class.java:2327) at java.lang.Class.getConstructor(Class.java:1725) at com.czlucius.scan.App.onCreate(App.java:72) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1154) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5920) ... 8 more

Additional information

https://stackoverflow.com/questions/25776116/android-acra-and-proguard