Search code examples
androidkotlingoogle-playillegalstateexception

What to do when app keeps crashing and reports IllegalStateException with unknown source?


Recently I updated my app by adding a couple of functions. In addition, I recreated the project since I had problems with app support for Android devices below Lollipop. After update and upload on Google Play, I update the app over Google Play on my separate real device (non test device) and it just keeps crashing (by opening it closes right away) without any errors on device. Google Play Console reports under "Crashes" IllegalStateException at

  • package.d.a (Unknown Source:73). However, the d.a package name is totally unknown for me, because I do not have that in my entire project.
  • package.MainActivity.onResume (Unknown Source:8). At this 8th I have an Import which would never cause an exception.

I guess that not only me, but some another users, who already updated the app, have also the save problem. However, I just generated a signed apk of my app and installed it on my real device (non test device), but for this step I needed to remove the app downloaded from Google Play before manual installing. This approach worked and the app does not crashes any more and works properly without problems.

I think, for users who download the app for the first time ever, this problem does not occur for them. How can I find out the cause of the problem?

Here is my app. If the app works for those who downloaded it after reading this post, please send me some short feedback using the built in Send Feedback in the app just to ensure the app functionality.


Solution

  • If you use proguard you need to add the mapping file to your console

    If you use ProGuard to optimize and obfuscate your APK files, you can upload a ProGuard mapping file for each version of your app on the Play Console to deobfuscate your crash stack traces and help you better analyze your app's crashes.

    Important: Only ProGuard mapping files are supported for deobfuscation.