I have done big update for my app, and everything is working fine when I run app with Android Studio, but when I published it to Play Store it crashes instantly on most devices. (It's working on some older android devices).
I tried to disable minify and ProGuard to avoid proguard making some classes invisible, but still crash. Also I tried to sign release apk and transfer it via USB to phone. After installing it's working perfectly, and after uploading the same APK file to to Play Store - it crashes. Help pls
*note: I lowered minSdk from 21 to 16, and enabled multiDex. Can multiDex cause crash?
Edit: Crash report from Play Console
java.lang.RuntimeException:
at android.app.ActivityThread.performResumeActivity (ActivityThread.java:3844)
at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:3884)
at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3053)
at android.app.ActivityThread.-wrap11 (Unknown Source)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1777)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:166)
at android.app.ActivityThread.main (ActivityThread.java:6861)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:450)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:936)
Caused by: java.lang.NullPointerException:
at com.lampa.SaVaVoiceRecorder.activities.RecordingActivity.onResume (RecordingActivity.java:825)
at android.app.Instrumentation.callActivityOnResume (Instrumentation.java:1355)
at android.app.Activity.performResume (Activity.java:7218)
at android.app.ActivityThread.performResumeActivity (ActivityThread.java:3819)