You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The docs says that ACRA already ships with an optimal proguard configuration, but for 5.9.0 this doesn't seem to be true.
With typical configuration, with R8 enabled in release builds, it crashes at startup with something like (deobfuscated trace):
java.lang.RuntimeException: Unable to instantiate application gmk57.testacracrashing.App: java.lang.NoSuchMethodException: <init> [boolean, class java.lang.String, class java.lang.String, class java.lang.String, class org.acra.sender.HttpSender$Method, int, int, boolean, class java.lang.Class, class java.lang.String, class java.lang.Integer, class java.lang.String, boolean, interface java.util.List, interface java.util.Map, int, class l2.d]
at android.app.LoadedApk.makeApplication(LoadedApk.java:802)
<...>
Caused by: java.lang.NoSuchMethodException: <init> [boolean, class java.lang.String, class java.lang.String, class java.lang.String, class org.acra.sender.HttpSender$Method, int, int, boolean, class java.lang.Class, class java.lang.String, class java.lang.Integer, class java.lang.String, boolean, interface java.util.List, interface java.util.Map, int, class l2.d]
at java.lang.Class.getConstructor0(Class.java:2204)
at java.lang.Class.getConstructor(Class.java:1683)
at org.acra.config.HttpSenderConfigurationBuilder.build(HttpSenderConfigurationBuilder.java:247)
at org.acra.config.HttpSenderConfigurationKt.httpSender(HttpSenderConfiguration.kt:153)
at gmk57.testacracrashing.App$attachBaseContext$1.invoke(App.java:20)
at gmk57.testacracrashing.App$attachBaseContext$1.invoke(App.java:16)
at org.acra.ktx.ExtensionsKt.initAcra(Extensions.kt:27)
at gmk57.testacracrashing.App.attachBaseContext(App.kt:16)
ACRA 5.8.4 with the same config works fine, so seems to be a regression in 5.9.0.
Build a release APK (for some reason it does not crash in debug builds, even with minifyEnabled true)
Launch
Workaround
Add to proguard-rules.pro: -keepclassmembers class org.acra.config.* { <init>(...); }
This line (or something more sophisticated) should probably be included in ACRA's default rules.
This is probably a duplicate of #1006, I don't know why that issue was closed.
BTW, thanks for the great library, it is very helpful. :)
The text was updated successfully, but these errors were encountered:
Describe the bug
The docs says that ACRA already ships with an optimal proguard configuration, but for 5.9.0 this doesn't seem to be true.
With typical configuration, with R8 enabled in release builds, it crashes at startup with something like (deobfuscated trace):
ACRA 5.8.4 with the same config works fine, so seems to be a regression in 5.9.0.
Expected behavior
Add does not crash.
Version
Steps to reproduce
minifyEnabled true
)Workaround
Add to
proguard-rules.pro
:-keepclassmembers class org.acra.config.* { <init>(...); }
This line (or something more sophisticated) should probably be included in ACRA's default rules.
This is probably a duplicate of #1006, I don't know why that issue was closed.
BTW, thanks for the great library, it is very helpful. :)
The text was updated successfully, but these errors were encountered: