Search code examples
androidcrashproguardrelease-mode

App crashes in release mode only, how to configure proguard?


My app crashes in release mode only, due to proguard (confirmed, I disabled it and worked)... I see somebody had the same problem and tried some solutions like this one: Android: app crashed when starting after signing in release mode .

I first tried keeping the MainActivity, then tried keeping the whole package with

-keep class android.app.**

but it still doesn't solve. Logcat in this case is nearly useless due to obfuscation, proguard is kind of complex to understand, also because I don't find clues on which part I should tune.

Do you have any idea on how I should configure proguard?


Solution

  • Common problems with that is using third party libs. Check your dependency and exclude those libraries from obfuscation process.