0

I am seeing a lot of

java.lang.RuntimeException
Caused by java.io.NotSerializableException

and have found how to fix it. The problem is that, from stack trace reports, I am not able to see where this exception occurrs (this is the full report Google Play Console offers me):

enter image description here

How can I find this out?

c0dehunter
  • 6,412
  • 16
  • 77
  • 139
  • do you have fragments? is one of them declared as inner class of an activity? – Blackbelt Dec 12 '18 at 10:38
  • I use Fragments a lot, but most of them are in separate files. The one and only inner class is `class ViewPagerAdapter extends FragmentPagerAdapter { private final List mFragmentList = new ArrayList<>(); ...`. – c0dehunter Dec 12 '18 at 10:42
  • is it static ? Are you able to reproduce the crash? – Blackbelt Dec 12 '18 at 10:48
  • @PrimožKralj did you upload your `mapping.txt` file of your currunt app version in play store. if not upload then upload it next time you will get exact cause of error – Saurabh Bhandari Dec 12 '18 at 10:48
  • @Blackbelt, no, it is not static. Could this be a problem? Here is [the code](https://pastebin.com/raw/08VUz3Pu). I am not able to reproduce this crash and have tried with many configurations. – c0dehunter Dec 12 '18 at 10:51
  • @SaurabhBhandari, no; I haven't uploaded the mapping.txt because the code is not minified/obfuscated. – c0dehunter Dec 12 '18 at 10:52
  • go on that screen and try rotating the screen of your device. See if it crashes. Btw, do it `static` or move it in a different file – Blackbelt Dec 12 '18 at 10:53

0 Answers0