Discussions
App in Release mode crashes on Android because of Proguard
5 months ago by Vivien Mahé
Hi,
I've been trying to run my app in Release mode, locally on my computer but I'm getting a crash on app launch.
This is the error from the crash log:
Caused by: java.lang.IllegalStateException: TypeToken must be created with a type argument: new TypeToken\<...>() {}; When using code shrinkers (ProGuard, R8, ...) make sure that generic signatures are preserved."
I have followed the instruction about setting up Proguard here: https://docs.adapty.io/docs/android-installation#configure-proguard.
The workaround I'm using for now is changing these following parameters from true
to false
to make it work, but I would like to avoid that:
isMinifyEnabled = false
isShrinkResources = false
Any ideas?
Thank you!